Removing the Previous/Next Links from WebHelp Classic OutputEdit online
The Previous and Next links that are created at the top area of each WebHelp Classic page can be hidden with a CSS code.
Using Oxygen XML Editor/Author
To remove these links from WebHelp Classic output and use a transformation scenario from
within Oxygen XML Editor/Author, follow this procedure:
- Create a custom CSS file and add the following CSS
code:
.navparent, .navprev, .navnext { visibility:hidden; } - Edit the WebHelp transformation
scenario and open the Parameters tab.
- For a DITA transformation, set the
args.cssparameter to the path of your custom CSS file. Also, set theargs.copycssparameter toyesto automatically copy your custom CSS in the output folder when the transformation scenario is processed. - For a DocBook transformation, set the
html.stylesheetparameter to the path of your custom CSS file.
- For a DITA transformation, set the
- Run the WebHelp transformation scenario to generate the output.
Using a Script Outside of Oxygen XML Editor/Author
Important: Running WebHelp transformations from a script outside of Oxygen XML
Editor/Author requires an additional license and some additional setup:
- You must have a valid license for the Oxygen XML WebHelp Plugin (https://www.oxygenxml.com/buy_webhelp.html).
- The Oxygen XML WebHelp Plugin must be installed and integrated for the DITA Open Toolkit or a DocBook XSL Distribution.
To remove these links from WebHelp Classic output and use a script outside of Oxygen
XML Editor/Author, follow this procedure:
- Create a custom CSS file and add the following CSS
code:
.navparent, .navprev, .navnext { visibility:hidden; } - Reference your custom CSS file:
- For DITA transformations, use the
args.cssparameter in your transformation script and set its value to the path of your custom CSS file. Also, set theargs.copycssparameter toyesto automatically copy your custom CSS in the output folder when the transformation scenario is processed. - For DocBook transformations, use the
html.stylesheetparameter in your transformation script and set its value to the path of your custom CSS file.
- For DITA transformations, use the
- Execute the transformation script.
For example, a DITA script might look like this::
- Windows:
dita.bat -i c:\mySample.ditamap -f webhelp -Dargs.css=c:\myFile.css -Dargs.copycss=yes - Mac OS X/ Linux:
dita -i C:/mySample.ditamap -f webhelp -Dargs.css=C:/myFile.css -Dargs.copycss=yes