There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c31e66fc-1cbf-4ac7-b5c5-2b40f2ee2155 XWIKI-20528 Open

Add parameter to open nodes of DocumentTree to given level/depth

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-f41c51ef-23d3-4162-b147-dee8fec4405c Simon Urli on 10/Mar/25 10:39
 

I'm a bit puzzled by the name of the parameter, regarding to what it's supposed to do. Sebastian I have the feeling by reading the description that this parameter wouldn't have any impact on what's displayed by the actual openTo parameter, could you confirm that it's what you have in mind?
To give an example, if we consider that {{documentTree openTo="document:xwiki:Sandbox.WebHome" /}} would display:

- Help
- Bar
- Foo
- Sandbox
   - Sandbox Test Page 1
   - Sandbox Test Page 2
   - Sandbox Sub Space

Then do you confirm that {{documentTree openTo="document:xwiki:Sandbox.WebHome" openToLevel="1" /}} would diplay:

- Help
   - Help Page 1
- Bar
   - Sub Bar
- Foo
   - My Foo
- Sandbox
   - Sandbox Test Page 1
   - Sandbox Test Page 2
   - Sandbox Sub Space

And not:

- Help
- Bar
- Foo
- Sandbox
   - Sandbox Test Page 1
   - Sandbox Test Page 2
   - Sandbox Sub Space
      - Sub sandbox