Displaying comment qty and link at top of page?

Is it possible to list the number of comments at the top of each page, with a link to the comment section (similar to the way the paperclip icon shows the number of attachments and links to the View Attachments page)?

2 answers

1 accepted

Accepted Answer
6 votes
David Simpson Community Champion Jan 02, 2012
This is a quick & dirty way to do something like what you want:
  1. Browse to Confluence Admin | Look & Feel | Custom HTML
  2. Click the Edit button
  3. Paste the following into At the end of the BODY
<script>
  AJS.toInit(function(){
    AJS.$('.page-metadata ul').append('<li><a href="#comments-section-title">'+AJS.$('#comments-section-title').text().trim()+'</a></li>');
  });
</script>

If you want it to show up before the attachments icon, swap append with prepend in the JavaScript above.

Thanks! That works perfectly.

Can you do that if you have Confluence On Demand (cloud) ??

thanks david , i use this but in mozilla browser its not supported its says its unauthorise something... this is my url https://www.yabeen.com

Oreng ans Spader Studio we are interior designers with good experiance,

please visit us: http://www.onsdstudio.com

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

261 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you