There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a3cf89d9-63d7-4b9f-b7be-cc9fdb1fdf43 XWIKI-24470 Open

Document tree macro ignores exclusions for nested spaces when showSpaces is "true"

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-ccc3579c-ebcd-46b2-9136-e8915494d9e4 Changes by Nikita Petrenko on 11/Jun/26 11:59
 
Summary: Document tree macro ignores excluded references exclusions for nested spaces when showSpaces is "true"
Description: With {{ {} showSpaces="true" { }} } , you cannot hide nested page/space through exclusions . To obsever current behaviour, either create new nested space/page or use existen ones and call {{documentTree}} macro somewhere in your XWiki, ex.   
  

{noformat}
{{documentTree showSpaces="true" showRoot="true" exclusions="document:xwiki:Sandbox.Internal Test.WebHome"/}}
{noformat}

or

{noformat}
{{documentTree showSpaces="true" showRoot="true" exclusions="space:xwiki:Sandbox.Internal Test"/}}
{noformat}

Both source codes will provide this result  [^local test from XWiki Jetty HSQLDB 17.10.9.jpeg] . Only passing {{showSpaces="false"}} will exclude listed page/space.