Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.