Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-29 Thread Vincent Massol
> On 29 Mar 2016, at 13:47, Vincent Massol wrote: > > Hi, > > If want you want is "to get all Documents in den Space "Book" (old model). It > shows all documents, even the nested ones. How can i query recursively > starting with the parent document "Book.WebHome”?”, then the following should

Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-29 Thread Vincent Massol
Hi, If want you want is "to get all Documents in den Space "Book" (old model). It shows all documents, even the nested ones. How can i query recursively starting with the parent document "Book.WebHome”?”, then the following should be enough: {{velocity}} #set ($xwql = "where doc.space like 'San

Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-27 Thread Matthias Wegner
Hi All, i tested and tried and found a solution which gives my needed result. Now i get the nested content of a space in nice order and with correct headings. Looks a bit ugly, but works: {{velocity}} #macro(display $idoc) #set($depth = $idoc.getSpace().toString().length() - $idoc.getSpace().to

Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-25 Thread Personal
Thank you Matthias! I know it wasn’t intentional but I am working on a similar issue and your code example was extremely useful. Regards, Jesse Bright > On Mar 25, 2016, at 3:10 PM, Matthias Wegner wrote: > > Hi Vincent, > > thanks, now it is clear and works. But i used a query like > > #se

Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-25 Thread Matthias Wegner
Hi Vincent, thanks, now it is clear and works. But i used a query like #set($hql = "where doc.parent='Book.WebHome' and not doc.name='WebPreferences' order by doc.title asc") #set($chapters = $xwiki.searchDocuments($hql, 0, 0)) to get all Documents in den Space "Book" (old model). It shows all

Re: [xwiki-users] Set Parent in XWiki 8.0

2016-03-25 Thread Vincent Massol
Hi Matthias, > On 25 Mar 2016, at 13:21, Matthias Wegner wrote: > > Hi Users, > > i added over 500 Pages to the new XWiki and now want to sort it in depth. > But i cant find the "Change Parent" Symbol in Edit-Mode. Where can i change > the Parent of a Page? See http://platform.xwiki.org/xwiki

[xwiki-users] Set Parent in XWiki 8.0

2016-03-25 Thread Matthias Wegner
Hi Users, i added over 500 Pages to the new XWiki and now want to sort it in depth. But i cant find the "Change Parent" Symbol in Edit-Mode. Where can i change the Parent of a Page? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Set-Parent-in-XWiki-8-0-tp