I just upgraded to Confluence 5.9.7. I like how I can see my favorite spaces on my dashboard, but don't like how they aren't organized alphabetically. Anyone know how?
I have the same question for Cloud.
You could insert the following in your custom HTML:
<script> //Sort My Spaces on the dashboard in alphabetical order AJS.toInit(function() { if ($("body").hasClass("dashboard")) { $( document ).ajaxComplete(function( event, xhr, settings ) { if ( settings.url.indexOf("search?cql") > 0 ) { var mySpaces = $("#sidebar-spaces > div > ul > li").detach(); mySpaces.sort(function (a, b) { return $(a).find('.aui-nav-item-label').text() > $(b).find('.aui-nav-item-label').text() ? 1 : -1; }); $("#sidebar-spaces > div > ul").append(mySpaces); } }); } }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That script does not have any effect in my environment. I tried all three custom HTML sections available. Any other idea?
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.
To include JavaScript inside Custom HTML, go to Confluence Admin > Custom HTML and insert the code in the "At end of the HEAD" textbox.
https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Code didn't work for us either. on Confluence 5.10.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see now that it was loading the spaces dynamically. The updated code should work (but it will only work for 5.10 and below, it won't work for 6.0).
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.
is there an update which works Confluence 6.10?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.