DITA: Add a menu selector
The menu selector is a simple menu that allows users to select other options. When a user selects an option, the URL switches to another page. Here's an example of what this looks like:
When the user makes a selection, the URL reloads another site entirely.
To incorporate a menu selector:
- Create a new HTML file by going to .
Insert a menu selector form with various options.
When a user selects an option, it triggers an
onchangescript to trigger that changes the browser's location to the URL of the option selected.
Note that because OxygenXML's webhelp uses frames, you must use the
window.parent.locationas the target for each of theo ptions selected.
The user will see the first option as the option that appears selected. Therefore, you need to customize the menu selector for each output.
- Create another header file and swap around the order. For the .NET transform, for example, put the .NET option first. Create another header file and swap around the order again. For the C++ transform, put the C++ option first.
- Click the Configure transformation scenariosbutton. Edit one of your transformation scenarios. On the Parameters tab, click the webhelp.footer.file option and set it to the right header file for that output.