Hi Pascal, On Thu, Dec 8, 2016 at 7:18 PM, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> wrote:
> Hello, > > With my xwiki7.0.1 to 8.4 upgrade process, I noticed that all my WebHome > on spaces (with dashboard+{{spaceindex}} macro) are "broken". > After a little bit of search, I understood that spaceindex macro list only > direct children terminal page... > In some different post from dev list, it seem that I must use > {{documentTree}} macro instead. > > My spaces dashboard use > {{spaceindex sort="modificationDate" count="20" /}} > to list the 20 more recents page and I added a shortcut to > /bin/view/Main/SpaceIndex?space=MySpace (broken too:-( ) > > Could you give me some advices how can I replace my "spaceindex" to: > - list the 20 more recents page (terminale and none terminale) on current > space? > I didn't found a "modificationDate" sorting parameter in {{documentTree}} > The document tree doesn't have this parameter, and it's not suited for your use case anyway. I would use the Query Manager to retrieve the most recent pages. Look for 'List all nested documents in the space "Space"' on http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HQueryLanguageExamples , but take into account the issue described at http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HFindingpagesundernestedpages . - replace my target /Main/SpaceIndex?space=MySpace by ... ??? > On http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HFlamingo there is this mention: "A new "children" viewer is now accessible in the "more actions" menu, along with the other viewers." The URL is /xwiki/bin/view/Path/To/Page/?viewer=children . It uses a live table. If you want a tree instead then there is http://extensions.xwiki.org/xwiki/bin/view/Extension/Children+Macro/ . Hope this helps, Marius > Probably I must create a custom LT to list every sub pages > > Finaly, may be a caution text must be added on this page: > http://extensions.xwiki.org/xwiki/bin/view/Extension/SpaceIndex+Macro > (ie "don't use this macro anymore with nested page!" or "list only direct > children terminal page ") > > Thxs for your help. > > Pascal BASTIEN >