Hi,
I’m using the DocumentTreeMacro for a custom navigation. With 15 everything is fine, but after upgrade to 16, it’s not open the related element from the “openTo” properties.
My implementation looks like this
#set ($openToDoc = $doc.documentReference.toString().replaceAll('([~"])', '~$1'))
... some user permission stuff
{{documentTree showTranslations="false" showWikiPrettyName="false" showAttachments="false" root="document:xwiki:${item}.WebHome" compact="true" showRoot="true" openTo="document:$openToDoc" limit="100"/}}
But with this, it’s only open the root (also there is a bug, for other elements I need to define expandToLevel="-1"
, or all elements would be already be open) and 1 level, nothing deeper.
When I define showRoot="false"
, it’s will open the tree until to the point from openTo, but then the root element is missing for the navigation.
Could not find any other information if something was changed.