Displaying comment qty and link at top of page?

Lis Riba January 2, 2012

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

6 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 2, 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.

Lis Riba January 4, 2012

Thanks! That works perfectly.

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2012

+1. Nice tip!

Keith McCurdy October 18, 2014

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

0 votes
jinu mm September 30, 2013

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

onsd studio May 10, 2016

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
TAGS
AUG Leaders

Atlassian Community Events