Skip to main content
February 23, 2010
Question

Code for Hide Navigation icon

  • February 23, 2010
  • 1 reply
  • 1307 views

In my Webhelp output, i have added the Hide Navigation icon.

My development team has a requirement that the Hide Navigation icon should :

on click , Hide TOC

on Click, Unhide TOC.

Currently, it can only Hide..and one has to click the Contents(TOC) icon to unhide ..They are not very comfortable with this.

Can anyone please help me modify the code to add the Unhide feature too?

Regards,

Nanditha

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
February 23, 2010

That's the way it works in all WebHelp, other tools as well I believe, and everyone else is comfortable with it.

I guess you might be able to get someone to write a script for a button to replace the Contents button that does what you want. However, you would have to turn off the RH Contents button and then the help would open to either the Index or the Search. On balance, unless anyone else has a suggestion, I think you will have to accept the way it is. It is standard.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
February 23, 2010

Ok..I have a slight problem in knowing how and where to edit the code..

If i try and add some code in the skins editor, then it might cause an impact while compilation and resulting in an error.

I want to know if someone has tried on some code for this function.

-Nanditha

Peter Grainge
Community Expert
Community Expert
February 23, 2010

What I was suggesting is that one of your developers would have to write a script for that button. If they can make a button work the way you want, I still don't think you will like the result. Compile some help with the Contents button deselected to see what I mean.

If your attempts do fail, it will not wreck anything as you would simply remove the button you create. In any case, with things like this it is always a good idea to create a copy of your project and test on that.

I have not seen anyone post that they have written such a piece of code and I am not sure it is possible. Rick Stone will be online when America wakes up, maybe he has seen someone with this requirement before.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.