---
title: "Use Variables in Topic Title"
id: "use-variables-in-topic-title"
project: "ClickHelp User Manual"
url: "https://docs.clickhelp.com/articles/clickhelp-user-manual/use-variables-in-topic-title"
updated: 2026-11-16T06:43:01Z
---

# Use Variables in Topic Title

Documentation index for AI tools: [/llms.txt](/llms.txt)
 
You can use variables not only in a topic content but also in TOC node text and topic titles. Here is how you can do this.

## Topic Title 

* First of all, you should create a variable. To learn more, refer to this topic: [Use Variables in Topic Content](/articles/clickhelp-user-manual/variables-1).
* We've created the **productName** variable.
![A global variable created](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/productName-variable.png)
* To insert this variable to a topic title, we can use the following syntax: 

```html
<ch:var name="productName" />
```

* Open the necessary topic and click the **Rename** button to rename it.
![Click the Rename button to rename the topic](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/rename-button.png)
* Insert the variable using the syntax above.
![Add the variable markup to the Topic title in the topic properties](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/insert-variable.png)
* Click **Save Changes**.
* Then you'll see the following.
![The variable in the topic title in the Author UI](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/variable-in-topic-name.png)
* This syntax will remain in this form in your project. The actual variable value will be inserted at the time of publishing.
![The variable value as a topic title in the Reader UI](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/variable-in-publication.png)

## Custom TOC Node Caption 

You can add a custom caption to make your topic title and the display text of a TOC node different:

* Open your [topic properties](/articles/clickhelp-user-manual/topic-properties).
* Insert a variable to the **Custom caption** field.
![Insert a variable to the Custom caption field in the topic properties](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/custom-caption-field.png)
* Click **Save Changes**.
* Here is what you'll see.
![Variable and custom caption in the topic title in the Author UI](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/custom-caption-in-topic.png)
* The actual result you'll see after publication.
![Variable and custom caption in the topic title in the Reader UI](/resources/Storage/clickhelp-user-manual/Screenshots/using-variables-in-topic-title/custom-caption-in-publication.png)