Sorting the spacetree by name

Adrian Geiter August 21, 2012

Is there a possibility to sort the to spacetree by name? If not that would be a very useful extension.

1 answer

1 accepted

1 vote
Answer accepted
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2012

Do you mean you want to sort the pages by title, as it is possible with the Page Tree Macro? That would indeed be a useful extension. Please follow the progress of this issue. For other feature requests please report them here: https://bitbucket.org/simplenia/spacetree-for-confluence/issues

Adrian Geiter August 27, 2012

Not the pages (they are already sorted), but the (sub)-spaces. As in the "subspaces" plugin:

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

Thank you!

Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2012

Edited: http://www.simplenia.com/confluence-plugins/spacetree doesn't look like it from vendor page. You could contact them since it's a commercial plugin.

Adrian Geiter August 27, 2012

We are talking about spacetree, not subspaces. That was just an example of how it works in subspaces. But the following code doesn't work in spacetree:

{spacetree:expandChildren=true|sort=title}

Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2012

The spaces should already be sorted by name:

  • If you leave the spaceCategories parameter blank, all spaces will be displayed ordered by name.
  • If you define one or multiple spaceCategories, the space categories will have the same order as you specify them in the parameter, but the spaces per category will be ordered by name.

The pages are currently sorted by position as default. If your pages have been ordered manually, it will respect the defined order. Otherwise the pages will be displayed in the 'natural' alphabetical order.

Adrian Geiter August 27, 2012

Strange... When I first configure the "subspaces" plugin and then set the spaceCategory for the spacetree, it doesn't work (see space "aaa" on screenshot). But it works when I first set the spaceCategory (see space "ABC" on screenshot).

Screenshot

This "workaraound" works for me.

Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2012

Sorry, the sorting of the spaces was case sensitive. This should be fixed now in version 1.0.2 released today. The macro now also provides some advanced sorting options, like the Page Tree macro does.

Thanks for your help resolving this issue!

Adrian Geiter August 30, 2012

Thank you very much!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events