This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-df37fbe9-2737-4863-acce-987738c31084 XWIKI-24470 Open

Document tree macro ignores excluded references when showSpaces is "true"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5c3bf1ab-4afc-435d-a093-4dbabde22ea0 Nikita Petrenko created this issue on 10/Jun/26 15:09
 
Summary: Document tree macro ignores excluded references when showSpaces is "true"
Issue Type: cid:jira-generated-image-avatar-df37fbe9-2737-4863-acce-987738c31084 Bug
Affects Versions: 17.10.9
Assignee: Unassigned
Components: Index
Created: 10/Jun/26 15:09
Priority: cid:jira-generated-image-static-major-4dfd6c60-537b-4f16-bbe8-015ab0599e3f Major
Reporter: Nikita Petrenko
Description:

With showSpaces="true", you cannot hide page/space through exclusions . To obsever current behaviour, either create new space/page or use existen ones and call documentTree macro somewhere in your XWiki, ex.

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

or

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

Both source codes will provide this result. Only passing showSpaces="false" will exclude listed page/space.

 
 

2 updates

 
cid:jira-generated-image-avatar-5c3bf1ab-4afc-435d-a093-4dbabde22ea0 Changes by Nikita Petrenko on 10/Jun/26 15:10
 
Description: With {{showSpaces="true"}}, you cannot hide page/space through exclusions . To obsever current behaviour, either create new 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.
Attachment: local test from XWiki Jetty HSQLDB 17.10.9.jpeg