You can also use all the global predefined variables and your own user-defined variables in the captions in the Table of Contents, keywords, image captions, link captions, macros and scripts, HTML code objects, HTML templates, PDF print manual templates and text entry fields in your project's Configuration section.
There is one difference, however: In all these locations you cannot use the Write > Insert Object >
tool, you must type the variables in manually.
If you use HTML variables anywhere except in HTML templates and HTML code objects only the plain-text portion of the variable value will be inserted. If the variable does not contain a plain-text portion nothing will be inserted.
|
Examples:
|
Text variables are supported both in normal index keywords and in A-keywords.
See Keywords and Indexes for details on editing and using keywords. |
|
You can also use text variables in link captions, i.e. the texts of hyperlinks shown in your topics. You can edit these directly, just by clicking once in the caption and typing, but it is still a little easier to double-click on the link to edit it in its properties dialog.
|
You can also use text variables in macros and scripts inserted in macro and script links and graphics hotspots. HTML variables are supported in scripts.
|
Both text variables and HTML variables are also supported in HTML code objects inserted with
Remember that no syntax checking is performed on the contents of HTML code objects; you are entirely responsible for the proper syntax and structure of your HTML code! Important: You cannot use HTML template variables in HTML code objects because the code objects are parsed together with the topic content, before it is inserted in the template. See The power of editable variables for some powerful additional features available with HTML variables! |
A number of the predefined variables in Help & Manual like <%NOW%> and <%TOPICLASTEDITED%> enter the current date or time or the date or time associated with an item in your project. Normally these variables will automatically use the date and time format set in your Windows configuration. However, you can also define the date format by adding a format string to the variable in parentheses like this: <%NOW(dddd, mmmm d, yyyy)%> See Date & time formatting in variables for details of the syntax. Note that this only works with variables that return date and time values, if you add format strings to any other variables the variable will no longer work. Also, you can only use this option by editing variables in the Help & Manual editor – you cannot use the date and time formatting syntax in variable definitions. |
See also:
Variables and Conditional Output (Reference)
Page url: http://www.helpandmanual.com/help/index.html?hm_working_variables_intoc.htm