On Wed, Jun 20, 2012 at 12:06 AM, Cox, Janna <[email protected]> wrote:
Please forgive me if this is resolved somewhere else, I've spent countless hours trying to figure it out. But is there not a way to edit the following snippet to make it list the pages in the given space alphabetically??
{{spaceindex space="<space name here>" /}}
I've tried all kinds of things including the suggestions at http://xwiki.475771.n2.nabble.com/sorting-of-space-index-macro-td7549725.htm... and wasn't able to get it to work.
So you made the change suggested by Sergiu and the list of pages still wasn't ordered? I think the reason is because Sergiu suggested to retrieve the list of documents ordered by their name but then when the list is displayed the *rendered* document title is used instead. This is a bit tricky because the rendered document title is dynamic, not saved in the data base, so you can't retrieve the list of documents ordered by their *rendered* title. I see 3 options: (1) display the document name instead of the document title (2) retrieve the list of documents ordered by their *static* title and display it (but some documents might not have a title set or the title could contain Velocity code) (3) sort the list of rendered titles (after retrieving the list of document names), but the order will not be consistent when you have pagination (if there are many documents in that space). Hope this helps, Marius
It seems like it should be something really simple to do, I just can't figure it out. Or if there's another way to get an ordered list of the REAL pages in the space that would be great. I want to use it on the webhome of the space, so I don't want it cluttered up with everything in the Document Index, just the actual pages.
I can live with it showing web preferences and the webhome pages.
Regards, Janna Cox
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users