[All Adaptavist Apps]
I'm new to Confluence and working in pre-production environment to see if we can implement into our organization. The first task we have is figuring out a way to remove "add comments" from specific pages. In other words, we would like the parent page of a space not to have comments (Hide "add comments") but the children pages to have comments. Since the default confluence does not seem to be capable of this I found an older post on this forum discussing this problem. Your recommendation was to install theme builder and use the following macros:
As far as I am aware there is no way to do this in a default confluence
installation.
The best I can offer is a Builder 2.0 specific solution which would
allow the comments to be displayed within a panel, based on metadata or
labels eg:
insert into page:
{metadata:showcomments}true{metadata}insert into the page footnotes panel (or wherever you want the comments
block to appear):{builder-show:metadata=showcomments:true}{builder-comments}{builder-show}NB: the metadata check is hierarchical, so if you want the child pages
to not have comments you will need to re-set the metadata in each of the
child pages ... another alternative would be to use labels:{builder-show:label=showcomments}{builder-comments}{builder-show}Which would result in those pages with the label 'showcomments' having
the comments area displayed and those without would not.Alain.
4 Comments
Unknown User (dbme)
sorry here is the macro code for the page.
insert into page:
when I insert I get an error specifying that macro is not valid.
Please inform thanks!
Unknown User (amoran)
When entering code into confluence comments please wrap it in a {code} macro
Unknown User (dbme)
sure will do, any ideas on why the metadata macro is not working? Is there an easier way to hide the comments?
Thanks!
Unknown User (amoran)
Sure, given that you require for all root level pages to have the comments hidden then you could re-express that as you only want pages which have a parent to have the comments shown, in which case you can use the builder-show macro to decide whether to display the comments or not
Hint #1: page=