1.20.2 Sidebar table of contents
The table of contents of the sidebar is configured as follows:
config_viewer.xml
1
<sidebar>
2
<sidebarToc>
3
<visible>true</visible>
4
<visibleInFullscreen>true</visibleInFullscreen>
5
<pageNumbersVisible>true</pageNumbersVisible>
6
<visibleIfEmpty>false</visibleIfEmpty>
7
<lengthBeforeCut>60</lengthBeforeCut>
8
<useTreeView>false</useTreeView>
9
<initialCollapseLevel>2</initialCollapseLevel>
10
<collapseLengthThreshold lowestLevelToTest="2">0</collapseLengthThreshold>
11
</sidebarToc>
12
</sidebar>
Copied!
Setting
Description
visible
Display of this element (true/false)
visibleInFullscreen
Display this item in full screen mode accordion (true/false)
pageNumbersVisible
Display of page numbers in this view (true/false)
visibleIfEmpty
Display of the element if there are no substructure elements (true/false). Default is false.
lengthBeforeCut
Maximum number of characters for each element (longer titles can be displayed by clicking on more...).
useTreeView
Display as fold-out tree
initialCollapseLevel
The hierarchy level up to which the view is initially collapsed (if the configuration was specified this way):<useTreeView>true</useTreeView>
collapseLengthThreshold
If this value is greater than 0, all elements that have more children than this value specifies are always initially collapsed. lowestLevelToTest specifies the lowest hierarchy level at which this method is to be applied.
Last modified 1yr ago
Copy link