CHM Output - Remove Show/Hide Hidden Text section

This forum is for discussions on the Help & Manual Premium Pack and the Premium Pack Toolbox configuration utility introduced with Premium Pack 3

Moderators: Alexander Halser, Tim Green

Post Reply
Chrisna-STT
Posts: 1
Joined: Mon Nov 14, 2022 10:10 am

CHM Output - Remove Show/Hide Hidden Text section

Unread post by Chrisna-STT »

Hi there,

Is it possible to remove the Show/Hide Hidden Text section from a CHM output?

If so, can anybody perhaps assist me with how to do this?

Thanking you in advance.
Kind regards
Chrisna
User avatar
Tim Green
Site Admin
Posts: 22777
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: CHM Output - Remove Show/Hide Hidden Text section

Unread post by Tim Green »

Hi Chrisna,

To turn this off, edit the your CHM .hmskin file in Help+Manual. In the Project Explorer, select Configuration > HTML Page Templates > Default, and locate this line of code:

Code: Select all

#switchtoggles { width:100%; text-align: right; padding: 0 0.0208in 0 0; font-size: 10pt; }
Add display: none; before the width: 100%; setting, so that it looks like this:

Code: Select all

#switchtoggles { display: none; width:100%; text-align: right; padding: 0 0.0208in 0 0; font-size: 10pt; }
Alternatively, and this is a much better solution, locate these lines of code and just replace the English text with your own language so that your users can open and close all toggles on the page with the link if they want to:

Code: Select all

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  <div id="switchtoggles"><IF_TOGGLES><a href="javascript:HMToggleExpandAll(!HMAnyToggleOpen())" title="Click to open/close expanding sections">Show/Hide Hidden Text</a></IF_TOGGLES></div>
</div>  
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.
Post Reply