Expand and collapse topic TOC

steinbacherGE
Posts: 55
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
WebhelpTopicTOC.png (157.19 KiB) Viewed 547 times
We would like wh_topic_toc to have a button similar to wh_publication_toc.

Thanks,

Leroy

Costin
Posts: 734
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.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

steinbacherGE
Posts: 55
Joined: Tue Mar 13, 2018 6:07 pm

Re: Expand and collapse topic TOC

Post by steinbacherGE » Wed May 05, 2021 8:06 pm

We are actually looking for this feature in the main TOC menu to the left and not the topic menu.

Currently there is a way to collapse all the menu children, but not the menu itself.

This would allow users to show or hide the publication TOC to make more room for the topic content within the browser window.

Thanks,

Leroy

Post Reply