Hi Karthik,
As I know this is not possible OOTB. From current options only using a plugin is a way to do it. You can write your own or use one of the existing on Marketplace for example Community Forms that allows locking comments on specific pages - https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.forums
I hope that will help.
Best Regards,
Mirek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do I understand correctly that this is not a "Confluence administrator" functionality, but any user with write access on the space/page can change the options?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kapil,
Thanks for your updates, i add this script in a HTML comment macro on a page. But still the comment is visible.
Is there is any way to hide that comment.
Thanks,
Karthik A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
Can you try this script.
<script type="text/javascript"> AJS.toInit(function(){ AJS.$('#comments-section').hide(); }); for (var i=0; i<nr_li; i++) { // if the element has the class fom 'clasa' parameter if(tags_li[i].getAttribute('class') == 'innerCell'){ tags_li[i].style.overflow = 'visible'; //tags_li[i].style.overflow-y= 'visible'; } } </script>
kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked for me, thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked in Atlassian Confluence 5.4.4. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Taiwo Ojo I believe Confluence does not support that kind of functionality
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
You can hide the comments button using below Javascript.
<script type="text/javascript"> AJS.toInit(function(){ AJS.$('#comments-section').hide(); } </script>
You need to add this script in a html macro on a page where , you want to hide comments.
-Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jan,
This will not work, because the HTML macro is severly limited in Confluence OnDemand (for security reasons).
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kapil, your answer works but it has a typo. Also you need to enable html macro: 1. In Confluence go to: Admin > General Configuration > Manager Add-ons Find the 'Confluence HTML Macros' under System add-ons. Enable the 'html' module. CAUTION - this has serious security consequences. 2. Edit the page where you wish to hide comments. Insert the 'html' macro. Paste the following text into the html macro - note the extra ')' on line 4: <script type="text/javascript"> AJS.toInit(function(){ AJS.$('#comments-section').hide(); }) </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.