Commentable Content Types

If you want readers to be able to comment on content items, then you need to modify the content types on which they are based. To do this, add a decorator called com.escenic.forum.presentation.ForumPresentationArticleDecorator to the content-type. This decorator will give the template developer access to related postings for this article. The following example shows a news content type to which such a decorator has been added.

<content-type name="news">
  <ui:title-field>title</ui:title-field>
  <ui:decorator class="com.escenic.forum.presentation.ForumPresentationArticleDecorator"/>
  <panel name="article">
    <ref-field-group name="common"/>
  </panel>
  <panel name="front-page">
    <ref-field-group name="frontpagefields"/>
  </panel>
</content-type>