{builder-comments} Macro
Description
This macro defines where the page/news comments, if enabled, will be shown within the theme layout.
Users can toggle the display of this macro using the link output from the menulink macro with a destination of comments.
Usage
Note:
This macro can only be used inside panels within the theme configuration screen. You cannot use it in pages or news articles, etc.
Parameters
This macro has no parameters.
Examples
Basic Use
Add the macro to any panel in theme configuration to display the comments in that panel:
CSS Customisation
To follow.
Hints and Tips
A common requirement is to only show comments to users in a specific group such as content authors. This is really handy because it allows content authors to discuss edits to pages, etc., using comments without cluttering up pages for normal visitors:
{show-to:groups=content-authors}{builder-comments}{show-to}
We've used the show-to macro and set it up so that the comments are only shown to people in a "content-authors" user group (this group doesn't exist by default so you'd have to create it or use a different group).
Ideally you should also include the "confluence-administrators" group (which all administrators are added to automatically on Confluence installations that don't use LDAP):
{show-to:groups=content-authors,confluence-administrators}{builder-comments}{show-to}
Warning:
Remember that comments are searchable - even if they aren't displayed on pages, they may still appear in search results.
If you want a more flexible way of choosing which pages display comments, you can use the builder-show macro in such a way as to only show comments when a specific label is added to the page, etc.
{builder-show:label=showcomments}{builder-comments}{builder-show}
That would only show the comments block on pages that have a "showcomments" label.
Frequently Asked Questions
Why are my comments not shown?
First of all, check that the following wiki notation is included in one of the theme panels:
If it's not, then add it 
Also, check that the panel which contains the macro is enabled - if the panel isn't shown, it's contents aren't shown.
If you have hidden comments (eg. using the "Hide Comments" link), then they will not be shown on any pages until you re-display them again. There are a few ways you can display comments...
The best way is to use the menulink macro to display a link or menuitem that allows users to show/hide comments
:
{menuitem:flat=true}{menulink:comments}Show comments (%count%){menulink}{menuitem}
Which displays:
Show comments (23)
We've wrapped the link in the menuitem macro so that pages which do not have comments will not display an inactive link.
Another alternative is to allow the user to post new comments
:
{menuitem:flat=true}{menulink:newcomment}Post a comment{menulink}{menuitem}
Which displays:
The disadvantage of this second approach is that it doesn't let the user know if there are any existing comments until they click the link. Also, if the user does not have permission to add comments, they won't see the link.
A third approach is to include the showComments=true setting on the page URL. For example, the URL to this page is:
http://www.adaptavist.com/display/USERGUIDE/builder-comments+macro
You would change that to:
http://www.adaptavist.com/display/USERGUIDE/builder-comments+macro?showComments=true
Anyone accessing this link would automatically get the display of comments switched on, regardless of what previous settings they had used.
Example comment
Hey Guy,
I was wondering if there is a way to add comments in a table, so that the comments can be matched to a specific row or point. Thanks
Not currently. We're working on a new plugin called "Bubbles" which will likely have an Adaptavist replacement for the standard Confluence comments block at some stage, however it's not likely to be released prior to March 2007.
Hi Guy,
Can comments be sorted with the newest comments at the top of the list rather thatn the bottom?
Not currently - our macro merely encapsulates the Confluence comments fuctionality at present, although we will likely create our own version of the comments system at some stage.
When you're editing a page, there's a "Comment" field. The Atlassian site (I think it was their site) has a "VIEW COMMENT" option at the top of the page which lets users view the last comment that was left by an editor... is there any way to make this appear in the page header with ThemeBuilder?
Updated by Guy Fraser
Jul 21, 2008 19:08
You can use the menulink macro with a location of "comments", eg:
{menulink:comments}Comments{menulink}EDIT: Ah, I've just realised what you are referring to - the "edit comment", eg. when editing a page a comment can be added to that version to say what was done, etc. You can use the version-history macro but I agree it would be nice if there was the "View Comment" feature as well which is less obtrusive. I'll add a ticket to our tracker to see if that can be implemented in a future release.
Ahh, cool! Thanks Guy! This version-history macro is pretty cool though. I think I'll make use of it.
Hi Guy;
Very basic question. We are using themebuilder, and trying to get the ability to reply to a specific comment. Right now we don't have the ability to "Reply to this". Is this a macro? How do I enable this important feature in theme builder?
Thanks in advance,
Tom
I think you need to enable "Threaded Comments" in Administration > General Configuration.
Updated by Tom White
Feb 19, 2008 21:21
worked like a champ Guy. Many thanks.
I have version 2.0.9 of Theme Builder I have?
When is Version 3.0 GA??
There's a great site using themebuilder: www.parleys.com, and I see their rating system. If you could have a look, is their rating maceo something that's generically available?
We will be announcing the GA of 3.0 in the News tab of this space. You can find the current version of the plugin you have installed via the Plugin Manager.
The ratings on parleys.com are a custom component I believe, written by Stephan Janssen of the Belgian Java User Group.
Hello,
I have been working on a new theme for our spaces... I have now gotten the tabs to work (thanks to you all) but my builder-comments have disappeared or will not show up. I have the footnote visible and I even placed some text in the same area to make sure I did not have the text color set to white or something weird. I then migrated to another space where I have not applied this new theme.. and the builder-comments work. So do you know of any quirks with the side tab theme? And I did not understand the above section about "showComments=true". Can you maybe point me in the correct direction?
ensure that the 'comments' menulink is in your menus and ensure that the checkbox next to it is ticked .. alternately ensure that the 'force show comments' checkbox in the options tab of your layout is checked.
Unless either of these are set to true then comments will be hidden.
I'm having a similar problem to Gina's above. I have the builder-comments macro in the footnotes panel (which is enabled). If I use "force show comments" in the options tab, they show up there, and the "Hide comments" link of course doesn't do anything.
If I disable "force show comments" and try to use the default comments menulink item in the View menu, the checkbox next to "Show comments" is never ticked, and the comments are never displayed.
If I manually append showComments=true to the page URL, the comments are not displayed.
I'm using TB 3.0.0 (the latest I think), and confl. 2.7.
Hi Jessica,
I finally resolved this issue by recreating a theme where the comments were working and then adding the new theme settings that I created one by one.
I found that as long as I did not select the option:
Remove Home/Orphan Page (3rd item) from Breadcrumb Trail....
Then everything seemed to work.
As soon as I selected that option, then the comments would not work. Even if I unselected the option... I had to create from scratch again to make the comments work.
That's really weird - could you create a ticket on https://tracker.adaptavist.com and upload your theme config so we can take a look? The breadcrumb options shouldn't have any effect on the comments block :s
So I just created a new theme based on the default theme, and didn't touch anything else. The comments are still broken as I outlined above. So I'm not sure how to follow your workaround since I can't seem to create a theme with functional comments to begin with.
If I apply the default theme, comments work as expected...
I have the same problem when using a custom layout. Has there been a solution to this problem?
Thanks,
Same problem here. Using Confluence 2.7 and TB 3.0.1.
Created my custom theme which differs very little from the default. I only changed the colors, removed the header, added some custom code to Menu panel content to display company logo and background:
{html} <!-- Banner --> <TABLE align=left cellSpacing=0 cellPadding=0 width=795 border=0> <TBODY> <TR> <TD width=160><A href="/confluence"><IMG height=55 src="...." width=138 border=0></A></TD> <TD width=620><IMG height=61 src="....." width=618></TD> </TR> </TBODY></TABLE> <!-- End of Banner --> {html}Now the comments section is not showing up unless I force comments in the Layout Manager.
Thanks,
michael
I'm pretty sure Theme Builder 3.0.2 fixes that bug...
Yes it does! Thanks, I didn't realize there was a newer version since I downloaded 3.0.1 a few days ago.
When using
{menuitem:flat=true}{menulink:comments}Show comments (%count%){menulink}{menuitem}Any idea how it can be solved?
Thanks,
Saar