Re: [xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Isaac Jurado
On Tue, Jun 14, 2016 at 11:42 AM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Tue, Jun 14, 2016 at 12:31 PM, Isaac Jurado  wrote:
>
> > Hello,
> >
> > Searching through the web I found the following mailing list thread:
> >
> > http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977
> >
> > Which solves my problem exactly, with one minor caveat: the enterprise
> > XWiki installation I'm using has Velocity macros disabled for average
> > users.
> >
> >
>
> > Therefore, what is the equivalent of Velocity's $doc.documentReference in
> > XWiki syntax (i.e. node id reference).
> >
>
> You can either hard-code the full reference of the current document
> (wiki:Path.To.Page) if it's not dynamic, otherwise, you can create a wiki
> macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
> that uses Velocity. Your average users will have to use this
> "currentDocumentTree" macro.
>

As I mentioned, our users don't have permission to use the {{velocity}}
macro so anything related to Velocity is out of the equation.

On the other hand I think I'm failing to understand the "root" parameter of
the {{documentTree}} macro:

http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro

Given that I have the following path:

  MyRoot.MyPage.MyChild

If I want to show the Document Tree rooted at MyPage, I'm trying something
like:

  {{documentTree root="document:xwiki:MyRoot.MyPage"
hierarcyMode="parentchild" /}}

And also:

  {{documentTree root="document:xwiki:MyRoot.MyPage"
hierarcyMode="parentchild" /}}

And neither of those show any children, when the expectation was to see
"MyChild".

Thank you for your support.  Best regards.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Isaac Jurado
Hello,

Searching through the web I found the following mailing list thread:

http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977

Which solves my problem exactly, with one minor caveat: the enterprise
XWiki installation I'm using has Velocity macros disabled for average users.

Therefore, what is the equivalent of Velocity's $doc.documentReference in
XWiki syntax (i.e. node id reference).

Best regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users