Expand and collapse topic TOC

Posts: 28
Joined: Tue Mar 13, 2018 6:07 pm

Expand and collapse topic TOC

Post by steinbacherGE » Thu Aug 06, 2020 4:59 pm

Is it possible to modify wt_topic.html so that the topic TOC expands and collapses like the publication TOC?
WebhelpTopicTOC.png (157.19 KiB) Viewed 187 times
We would like wh_topic_toc to have a button similar to wh_publication_toc.



Posts: 711
Joined: Mon Dec 05, 2011 6:04 pm

Re: Expand and collapse topic TOC

Post by Costin » Mon Aug 10, 2020 12:25 pm

Hi Leroy,

Adding a button to hide the topic toc is not somthing you could do by default using the current implementation of webhelp.
However, I logged an improvement request in our internal tracking system, so our development team will consider adding a button to expand/collapse the toc in a future version of the software.

Meanwhile, most probably this could be achieved through a JavaScript customization.
If you would create your own JavaScript customization, see this section from the User-Guide, describing how to add the JavaScript through HTML content in the WebHelp output.

Costin Sandoi
oXygen XML Editor and Author Support

Post Reply