On 22 Jul 2016, at 23:32, Vincent Massol
<vincent(a)massol.net> wrote:
Hi Jared,
On 22 Jul 2016, at 22:59, simmsj
<simmsj(a)mac.com> wrote:
I'm trying to list the children of the current page. According to this post:
http://lists.xwiki.org/pipermail/users/2015-December/031639.html, I believe
this should work, but all I get is "No pages found":
{{velocity}}
{{documentTree root="$doc.documentReference" /}}
This is not correct, see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro and especially
the documentation for the “root” parameter at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro#HP…
Namely:
{{velocity}}
{{documentTree root="document:$doc.documentReference" /}}
{{/velocity}}
FYI I’ve updated the page and added an example at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro#HC…
Thanks
-Vincent
{{/velocity}}
If I use {{velocity}} $doc.documentReference {{/velocity}}, the correct
value is returned.
Can anyone tell me what I'm doing wrong or if there is a better way to list
all the children of the current page?
Thanks,
Jared
View this message in context:
http://xwiki.475771.n2.nabble.com/Trying-to-use-doc-documentReference-as-th…