ClickHelp User Manual

Use Variables in Topic Content

ClickHelp User Manual/Authoring/Single-Sourcing and Dynamic Output/Variables/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 Tools  Portal 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 Single-Sourcing tab of the Design mode, and select a variable's name in the Variables group, then click Insert 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" />