Sorted by space creation, not alphabetical

I am using the Sub Space plugin, but my spaces are being ordered by their creation date, I want them alphabetical

1 answer

1 accepted

Hi,

this is allready possible as there is a parameter availavble in the subspaces macro called 'sort' with the option 'title'. This should do the trick for you I guess.

Hope that helps? Cheers, David

Thanks David, but pleaes excuse my ignorance... how do I change that Macro? When I go to Plugins I'm not seeing any options to configure the plugin.

when you insert the macro to any confluence page, you can set different options. One of them is 'sort'. This allows you to sort the list different each time you use the macro.

I'm still not seeing it... a little background, the confluence instance I'm managing was actually configured by someone else before they left my company, and they installed the Subspace manager plugin. The sub-space manager is currently being used as a toolbar at the top of every page. This is how we're using it: http://i.imgur.com/H3sdk.jpg

You need to edit that page and the click on that macro. You should see something like it is shown in the screenshot below:

Thanks David, I've found that... but the way the bar is being used it appears to be built into the Confluence Wiki, it's not configured on a page by page basis... It's visible above the pages across the top of the screen, and what I'm having difficulty now is how to edit that... I'm not even sure how it was configured to be there in the first place.

edit: I've just found some details from the previous admin. He modified the Main and General layout to include the following statement:

$helper.renderConfluenceMacro("{subspaces:addlink=true|currentSpace=$spaceKey}")

He then also updated the Theme options to include the following in the Header:

{subspaces:addlink=true|currentSpace=$spaceKey}

How should I modify this so the bar sorts by title?

Oh, I see! the documentation allows this as 'the common way' ;)

You would have to include a new parameter 'sort' as follows:

{subspaces:addlink=true|currentSpace=$spaceKey|sort=title}

Try to play around withthis option, it should be what you are looking for :)

Genius!... Simply added sort=title to the Main Layout code and the subspace toolbar now sorts alphabetically.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

168 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you