Page 1 of 1

Expand and collapse topic TOC

Posted: Thu Aug 06, 2020 4:59 pm
by steinbacherGE
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 545 times
We would like wh_topic_toc to have a button similar to wh_publication_toc.

Thanks,

Leroy

Re: Expand and collapse topic TOC

Posted: Mon Aug 10, 2020 12:25 pm
by Costin
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

Re: Expand and collapse topic TOC

Posted: Wed May 05, 2021 8:06 pm
by steinbacherGE
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