Hello,
I am having a hard time trying to work out how to keep the tree expanded when I click on a sub item.
For example, I have this code I copied from the main Navigation Panel
{{velocity}}
#panelheader($services.localization.render('xe.panels.navigation'))
## Escape special characters in macro parameter values.
#set ($openToDoc = $doc.documentReference.toString().replaceAll('([~"])', '~$1'))
{{documentTree showTranslations="false" showAttachments="false" compact="true" root="document:play:DEMO.WebHome" openTo="document:$openToDoc" /}}
#panelfooter()
{{/velocity}}
With the root
directive, this is indicating I have a sub wiki called play
and my WebHome
lives in DEMO
DEMO
* Page1
*SubPage of Page1
* Page2
*SubPage of Page2
*SubSubPage1 of Page2
*SubSubPage2 of Page2
*Page3
So, with the above code, I get a list that looks like this (the showRoot
directive is not true):
>Page1
>Page2
*Page3
When I expand Page1 or Page2 and click on any subpage (or subsubpage), the expand does not remain, and everything collapses. This makes it very difficult to navigate around the wiki.
However, that being said, on the built-in Navigation Panel, this doesn’t happen. It will happily stay expanded and the “tree” will follow me when navigating through the wiki. I don’t understand why it doesn’t do that when I used the same code elsewhere.
I hope that makes sense. Any help or pointers in the right direction would be greatly appreciated.
Cheers.