Sorting
To sort, we expand the {space-reporter} macro out a bit. So, to sort by title, you would put this:
To sort by creation date in descending order (newest to oldest), try this:
To sort by a custom value, it gets trickier. Firstly, we need to store a custom value somewhere. For simplicity, we'll store it on the space's homepage. Firstly, install the latest version of the Scaffolding 2 Plugin. Then, we add something like this to each space's homepage:
This will set a number value called 'Space Order' to '1' and won't display it to the general user. Now, we need to specify that we want to sort spaces using it:
This uses a 'key chain' to find the Space Order field. First, it uses the Space Supplier to find the home page, then uses the Scaffold Data Supplier to find the 'space order' field, which it then sorts with.
Is there a way to override the "permissions" which only let you see certain spaces. I actually want a list of all the spaces in my Confluence, regardless if I have view permission on them or not.
Er, no. That would defeat the whole purpose of having security in the first place...
Yes. I am not arguing that. But in my case, I want people to know that certain spaces exist, and if they need to then they can be requested to be added to that space permissions. Hence it avoids this set of emails to the Site Admin:
1. Hi site admin. Can we create this space called "x space" (or worse: user creates a space "x space" - but we dont allow users that luxury)
2. No, we already have that space. Please contact the space admin to be added to that space.
3. Hi space admin. I want to be in your space.
I want to avoid steps 1 and 2.
Hmm. I think you're going to need to build a plugin. It's definitely not something I would want to build into Reporting - too many security issues.
You can definitely do this with a custom plugin however. You could even have your plugin hook in with the Reporting Plugin if you don't want to go to the effort of writing your own output macros. See the Confluence Supplier Library page for details.