Make page toggles default expanded

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Andie Davidson
Posts: 17
Joined: Wed Apr 05, 2017 9:38 am

Make page toggles default expanded

Unread post by Andie Davidson »

Using the iFrames responsive skin for webhelp:
For a page with a number of expanding toggled sections, and the button:
<a href="javascript:HMToggleExpandAll(!HMAnyToggleOpen())" title="Click to open/close expanding sections"><span class="hmbtntoggle"></span></a>

Is it possible to flip the "click to open/close expanding sections" (HMtoggleExpandAll in helpman_topicinit.js) so that the default is all expanded, and you click to collapse all - not the other way round?
User avatar
Tim Green
Site Admin
Posts: 23154
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Make page toggles default expanded

Unread post by Tim Green »

Hi Andie,
Is it possible to flip the "click to open/close expanding sections" (HMtoggleExpandAll in helpman_topicinit.js) so that the default is all expanded, and you click to collapse all - not the other way round?
You just need to define your toggles to be open by default instead of closed. The setting for this is in the upper left of the toggle definition dialog. There you can define if the toggle is to be open or closed by default in screen (WebHelp and CHM) and print (PDF, DOCX, eBooks) output,. :)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Andie Davidson
Posts: 17
Joined: Wed Apr 05, 2017 9:38 am

Re: Make page toggles default expanded

Unread post by Andie Davidson »

Doh! 'Help Expanded'! Of course. Thanks.
Post Reply