On Fri, Mar 20, 2015 at 3:04 PM, MishaK <[email protected]> wrote:
Hello! I'm using xwiki 6.3 version and I can't update it. I created a panel display tree (using documentTree) on the left of my wiki pages to display the content with opening/closing branches and links to the pages on click. However the order of the tree is messed up because it uses some kind of sorting. I would like to change the order to my liking.
For 6.3, you can edit the XWiki.DocumentTreeMacros page in wiki edit mode and add the sort clause to the query used at: https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-6.3/xwiki-platfo... (the query used to retrieve the child documents of a wiki) https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-6.3/xwiki-platfo... (the query used to retrieve the child documents of a space; here the sort is currently done by document name) https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-6.3/xwiki-platfo... (the query used to retrieve the child documents of a document) In newer versions of XWIki only one change is required instead of 3. You can sort by document name or document title, but note that this will use the title stored in the database which may be different than the displayed title (e.g. when the title contains Velocity code that is executed at runtime when you access a wiki page). Hope this helps, Marius
Some things that I already did: -I've tried using File Manager and few other extensions but it doesn't display anything or doesn't have some dependencies. I'm guessing it is because of the old version I have. -Also tried Hierarchy Macro with editing option but it seems to not move anything. -Lastly I've tried to edit some of the macros, ended up screwing all of the macros and had to restore the wiki with backup.
I'm guessing there is a way to hard code all of this but that's the last option I want to take because every time a new page is added I would have to edit the tree.
Regards, Michael
-- View this message in context: http://xwiki.475771.n2.nabble.com/Editing-pages-and-index-view-tp7594388.htm... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users