You can use all global predefined variables and user-defined variables in all HTML templates. In addition to this there are a number of special HTML template variables, which are only relevant in HTML templates.
In addition to these variables you can also use predefined and user-defined conditional switches to include or exclude content on the basis of conditions. This is particularly useful for variables, which are often only relevant in certain contexts. For details see Conditional output in HTML templates.
More information on the variables and conditions that you can use in HTML templates can be found in the following locations: |
You can use all your user-defined variables in HTML templates, including HTML variables for inserting HTML code. Just type in the variable in the position where you want to use it in the standard format, complete with the opening <% tag and the closing %> tag. Example: ... The above example inserts the contents of the user-defined variable between horizontal rules above the topic text on every page. |
You can use both the global variables and the special HTML template variables. They are used just in the same way as user-defined variables. Just type them into the template in the position where you want to use them. Always type the variables exactly as shown in the variable lists, complete with the opening <% tag and the closing %> tag. Example: ... The above example inserts the web URL of the current page at the bottom of every topic page in Webhelp. (This makes it easy for support staff to give users the address of specific help topics in the online version of your help.) |
You can redefine both global and user variables in individual topics, by assigning a new value to the variable for the topic in the tab behind the editor. This is particularly useful for HTML templates because it enables you to insert individual code and text in your templates for on a per-topic basis. For example, you can reference different versions of JavaScript files in individual topics or insert individual texts in the head section of the page for search engine optimization.
See The power of editable variables for more detailed instructions. |
See also:
Global predefined variables (reference list)
HTML template variables (reference list)
Conditional output in HTML templates
The power of editable variables
Page url: http://www.helpandmanual.com/help/index.html?hm_advanced_htmltemplates_variables.htm