Re: [xwiki-users] Editing pages and index view

2015-03-30 Thread Marius Dumitru Florea
On Mon, Mar 30, 2015 at 10:30 PM, MishaK  wrote:
> Thank you for your reply!
> We ended up updating to the latest version which took a while.

> By the way, the links that you posted don't work :D.

They work for me, provided GitHub is available (there were some issues
during the last days).

Thanks,
Marius

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Editing-pages-and-index-view-tp7594388p7594471.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Editing pages and index view

2015-03-30 Thread MishaK
Thank you for your reply!
We ended up updating to the latest version which took a while. 
By the way, the links that you posted don't work :D.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Editing-pages-and-index-view-tp7594388p7594471.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Editing pages and index view

2015-03-26 Thread Marius Dumitru Florea
On Fri, Mar 20, 2015 at 3:04 PM, MishaK  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-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentTreeMacros.xml#L188
(the query used to retrieve the child documents of a wiki)

https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-6.3/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentTreeMacros.xml#L229
(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-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/DocumentTreeMacros.xml#L317
(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.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Editing pages and index view

2015-03-23 Thread MishaK
Hello, 
I found out that the tree is possible to edit by changing the page names. I
tried numbering the pages in front but they still don't sort in the number
order from 1 to 9.

Here is how it looks like.
Tree view on the page:
 

Document Index:
 

Please help!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Editing-pages-and-index-view-tp7594388p7594401.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users