Links for showing and hiding the navigation pane in topics

File: 

This article shows you how to add show/hide links for the navigation pane in your topics.

Setting up master page

  1. Go to the masterpage that you want to add the links to.
  2. Select the header or the footer of the masterpage.
  3. Click Insert > HTML > Advanced > Script.
  4. On the tab Source, add the following code: addShowHidePaneLinks();
  5. Save the script and save your masterpage.
  6. 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:

  1. Download the showhidelinks script file.
  2. Open whutils.js.
  3. Add the contents of the showhidelinks script file to the top of whutils.js.
  4. Save your changes.
  5. Open whtopic.js.
  6. Find the function showHidePane() and add amendshowhidelink(); before the closing bracket.
  7. Save your changes.
  8. Open whtbar.js.
  9. Find the function searchB() and add amendshowhidelink(); after SendMessage(oMsg);
  10. Now add amendshowhidelink(); before the closing bracket in the functions showTOC(), showIndex(), showFts(), showGlossary() and showHidePane().
  11. 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.

Tags: