Ha! Thanks! You made me look further into the document titles and I discovered that the
reason they weren't sorting correctly had to do with the case of the first letters in
the title. The lower case ones get bumped to the bottom of the list making it seem out of
order. Once I went in and renamed them it all worked out. I knew it had to be something
simple I wasn't doing. Thanks again!
Janna Cox
Deskside Support
E: Janna.Cox(a)fmcti.com | P: 281-405-7914
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Marius Dumitru
Florea
Sent: Wednesday, June 20, 2012 2:37 AM
To: XWiki Users
Subject: Re: [xwiki-users] Space Index Macro
On Wed, Jun 20, 2012 at 12:06 AM, Cox, Janna <Janna.Cox(a)fmcti.com> 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.ht… 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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users