File:
This article shows you how to add show/hide links for the navigation pane in your topics.
- Example output. This example output and skin are created by Jonathan Smith.
- You can also download the amended output files for RoboHelp 9. You will still need to set up your master page.
Setting up master page
- Go to the masterpage that you want to add the links to.
- Select the header or the footer of the masterpage.
- Click Insert > HTML > Advanced > Script.
- On the tab Source, add the following code:
addShowHidePaneLinks(); - Save the script and save your masterpage.
- Generate your layout.
Setting up output files
If you have downloaded the amended output files for RoboHelp 9, past the amended files into your output. Otherwise, follow the following steps:
- Download the showhidelinks script file.
- Open whutils.js.
- Add the contents of the showhidelinks script file to the top of whutils.js.
- Save your changes.
- Open whtopic.js.
- Find the function
showHidePane()and addamendshowhidelink();before the closing bracket. - Save your changes.
- Open whtbar.js.
- Find the function
searchB()and addamendshowhidelink();afterSendMessage(oMsg); - Now add
amendshowhidelink();before the closing bracket in the functionsshowTOC(),showIndex(),showFts(),showGlossary()andshowHidePane(). - Save your changes.
Your output is ready. Make a backup of whtopic.js, whtbar.js and whutils.js. You need to paste the amended files to your output every time you generate the help.
