Root node id format for page tree macro

Hi

I am using page tree macro. It is used in the page Technology Space > Knowledge Management System. This page has child pages and so I want to use the page tree macro in this page. But it is not working properly. I am not sure if I am setting the id of the document in the right way. I have set the id as document:xwiki:Technology+Space.Knowledge+Management+System.WebHome. The page does not show any tree at all. It says “No pages found”. How I do actually determine the node id of a page?

1 Like

Found an alternative. There is another macro Children which serves my purpose

This question would also be interesting to me. How do figure out the note id (and the nessesary formate) for the root node id?

Simple.

1/ Enable the information panel on the page you want to get the reference for
Screenshot 2022-08-29 at 15.31

2/ Copy the information from the Page Reference Box

3/ Paste that value into the Page Tree macro.
Sandbox.TestPage2

4/ Add document:xwiki: to the beginning of the macro reference
document:xwiki:Sandbox.TestPage2

Save, and check.

Hi, I’ve now modified the documentation of https://extensions.xwiki.org/xwiki/bin/view/Extension/Document%20Tree%20Macro#HParameters to add a like to the following FAQ entry: https://xwiki.org/xwiki/bin/view/FAQ/How%20can%20I%20get%20the%20reference%20of%20a%20page

I hope that this would have been enough for you to find the answer.

2 Likes