I tried the scripts here: https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-reverse-the-order-in-which-comments-appear/qaq-p/21425
But the thread is 5 years old and the scripts don't seem work on more recent versions (I am running 5.8.6)
When I put the code in the end of Head Custom HTML, the code appears at the top of every wiki page in an error state, and doesn't render.
That part of the answer worked perfectly on my instance 5.8.10
<script> function reverseCommentOrder(){ $comments = AJS.$('#page-comments'); $comments.children().each(function(i,li){$comments.prepend(li)}); } AJS.toInit(function(){ reverseCommentOrder(); }); </script>
(I added the script tags self as you should do, otherwise the code will appear in the page). If that doesnt work, please provide the error state/error message
I was unable to locate the custom html file anywhere on my PC - searching for Confluence Admin yielded naught. This is a client-side file, correct? Where can I find it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Panos Perfect, I looked for something like this.
@Paul Willman No, you find it in the Confluence application:
Go as logged in user with admin permission to General Configuration > Look and Feel > Custom HTML
Click edit and add the Script at At end of the HEAD.
Cheers
Niklas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are not using html code, is there a way to do this without the code?
If I enter just this code, where do I put it?
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.