Hi,
If you want to customize the generation of the
TOC component from the main page(a simplified TOC because it contains only two levels from the documentation hierarchy) you have to take a look at the template
Code: Select all
<!--
Template used to expand the whc:webhelp_tiles component.
-->
<xsl:template match="whc:webhelp_main_page_toc" mode="copy_template">
from the stylesheet:
Code: Select all
com.oxygenxml.webhelp/xsl/dita/responsive/mainPageComponentsExpander.xsl
In case when you want to customize the generation of the
side TOC component(component which is generated for each topic and it is not available in the main page), you have to look at the
generateSideToc named template from
com.oxygenxml.webhelp/xsl/dita/responsive/navigationLinks.xsl.
At the moment, only the selected chapter is displayed in the table of content. Can we have all chapters of the book in the TOC with only the active chapter being open?
I will register this requirement in our issue tracking system to be implemented in a future oXygen version. I think we could add a parameter that allows you to customize the side TOC generation:
- an option to generate also all chapters(topics) from the first level;
- an option to generate only the selected topic with its children;
- an option to generated the selected topic with its children and siblings.