ClickHelp User Manual

Use Variables in Topic Content

Variables are useful when you need to put some short piece of text to many places, and have a way to modify a text chunk in a centralized manner.

To achieve this, you can create a global variable through Settings  Single-Sourcing  Variables or a project variable through Current Project  Variables and assign a value to the created variables.

To use a variable in a topic, switch to the Insert tab of the Design mode, click Insert Variable, and select a variable in the Select a variable input field. Then click OK to insert the variable.

The Insert variable button in the Single-sourcing tab of the Ribbon bar

When using the Source mode, use this syntax to insert a variable:

 <ch:var name="variableName" />