AnsweredAssumed Answered

Create a forum view using FreeMarker templates

Question asked by rivarola on Nov 2, 2007
Latest reply on Dec 4, 2007 by rivarola

Has somebody already wrote a template to display the hierarchy of topic/posts of a forum or document discussion ?
As you may know a discussion contains all its posts, and the posts have cm:references relationships between then to remember which one is the answer to another one. I want to write a template to really show the answers hierarchy, like :

———Answer to Answer1
———Other answer to Answer1
————Answer to Other anwer…
——Answer to Post2

and so on…

Is it possible in FreeMarker to display an unlimited hierarchy ?
Should it be done using the "recurse" instruction ?
Any help/idea would be appreciated !