Hi, I modified the Navigation panel menu in order to have a structured tree menu that always shows FOO page root and the opened path to reach the current node (FOO project has nested pages).
{{velocity}} #panelheader("FOO MENU") ## Escape special characters in macro parameter values. #set ($openTo = $services.model.serialize($doc.documentReference, 'default').replaceAll('([~"])', '~$1')) {{documentTree showTranslations="false" showAttachments="false" compact="true" showRoot="true" openTo="document:$openTo" root="document:xwiki:FOO.WebHome" /}} #panelfooter() {{/velocity}} Considering all my projects are inside Main\projects page, is there a way to find dinamically the toplevel page node without having to specify the root page name (FOO.WebHome)? Thanks for reply -Matteo -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-get-top-level-page-node-in-documentTree-tp7602158.html Sent from the XWiki- Users mailing list archive at Nabble.com.