1.20.2 Sidebar table of contents

The table of contents of the sidebar is configured as follows:

<sidebar>
    <sidebarToc enabled="true">
        <visibleInFullscreen>true</visibleInFullscreen>
        <pageNumbersVisible>true</pageNumbersVisible>
        <lengthBeforeCut>60</lengthBeforeCut>
        <useTreeView>false</useTreeView>
        <initialCollapseLevel>2</initialCollapseLevel>
        <collapseLengthThreshold lowestLevelToTest="2">0</collapseLengthThreshold>
    </sidebarToc>
</sidebar>

enabled

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)

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 updated