Once a variable is created, you can insert it into any article or category page using the merge code syntax, the toolbar (Markdown editor), the slash command (Advanced WYSIWYG editor and unified Editor), or the Insert menu (unified Editor). Variables can also be translated so that when your articles are read in another language, the variable content matches.
To create a variable, edit its content, check where it is used, or delete it, read Create and manage variables.
NOTE
The unified Editor is rolled out in phases and is currently available in projects created on or after November 23, 2026. Projects created earlier continue to use the Advanced WYSIWYG editor and the Markdown editor. We're working to make it available to all projects soon.
Not sure which editor you are using? Open any article in edit mode and check the label in the article header. It shows Unified Editor, Advanced WYSIWYG, or Markdown.
Insert a variable into an article
Choose the method that matches your editor. A variable is inline text, so you can place it anywhere in a sentence.
Using merge code syntax
Type the merge code directly in the Markdown editor or in the unified Editor's Markdown view. Best when you already know the variable's merge code value.
Learn more →Using the toolbar
Browse or search for variables from the Content Resources icon in the toolbar. Works in the Markdown editor.
Learn more →Using the slash command
Type a slash command in the Advanced WYSIWYG editor or the unified Editor to open the variable picker inline without leaving the keyboard.
Learn more →Using the Insert menu
Select the Insert (+) icon in the unified Editor toolbar and choose Variables to insert a variable.
Learn more →Using merge code syntax
Type the variable's merge code value between double curly brackets directly in the content. The merge code syntax works in the Markdown editor and in the unified Editor's Markdown view, which you open with Switch to Markdown view () in the article header.
Example: {{variable.Disclaimer}}
You can find the merge code in the Merge code value field when you create the variable, and on the Variables page afterwards.
The merge code must match exactly, including capitalization and spelling. A single character difference will prevent the variable from rendering.
In the unified Editor's Markdown view, the short merge code you type is rewritten to its full Document360 Flavored Markdown (DFM) form. This is expected, and the variable still renders. Switch back to Block view to see the variable's value in the sentence.
In the unified Editor's Block view, merge code you type stays as plain text and does not insert the variable. Use the slash command or the Insert menu instead.
In the Advanced WYSIWYG editor, the merge code syntax does not work. Insert variables using the slash command instead.
Using the toolbar (Markdown editor)
- In the article editor, click the Content Resources () icon in the toolbar.
- Select Variables.
- Select the variable or use the search bar to narrow down by name.
- Select the variable to insert it.

Using the slash command (Advanced WYSIWYG & unified Editor)
Advanced WYSIWYG editor:
- Type
/variablesto open the Variables tool in the slash menu. - Use the search bar to find the variable you want to insert.
- Select the variable to insert it.

Unified Editor:
- Place your cursor where you want the variable to appear.
- Type
/variable, or type/and open the Content Resources tab, then select Variable. The Insert variable dialog opens. - Use the Search field to find the variable, then select it in the list. Check its value in Variable preview.
- Select Insert.
The variable's value appears in the sentence. When you hover over it, its name appears, so you can tell it apart from text you typed.
Using the Insert menu (unified Editor)
In the unified Editor, you can also insert a variable from the toolbar above the content.
- Place your cursor where you want the variable to appear.
- Select the Insert (+) icon in the toolbar.
- Select Variables. The Insert variable dialog opens.
- Use the Search field to find the variable, select it, and select Insert.

Translate variables
You can create variables in multiple languages so that when your articles are read in a specific language, the matching translated variable content is displayed.
Global variables cannot be translated. Only variables created with a specific language scope support translation. If you plan to translate a variable, select a specific language when you create it.
Translate a new variable
- Navigate to Content tools () > Content resources > Variables.
- Click Create.
- Enter the variable name, select the language, and enter the content.
- Click the Translate to other languages dropdown, select the languages you want to translate into, and click Translate.
- Click Save to save with all translations.

Translate an existing variable
- On the Variables page, click the name of the variable you want to translate.
- Navigate to Translate to other languages, select the language, and click Translate.
- To translate into additional languages, select each one and click Translate.
- To overwrite an existing translation, click Translate again.
- Click Update to save.
Check translation status
On the Variables page, click the globe icon in the Translation column. A green check means the variable has been translated into that language. An X means it has not.

Best practices
- Copy the merge code from the Variables page rather than typing it from memory. An exact match is required, and one wrong character stops the variable rendering.
- Translate before publishing. If your knowledge base is multilingual, add translations for new variables before publishing articles that use them. A missing translation can display content in the wrong language to readers.
- Check where a variable is used before you change its content. An edit applies immediately to every article that uses the variable, including published ones. See Create and manage variables for the View references panel.
- Use a snippet for anything longer than a phrase. If the content you want to reuse includes formatting, multiple sentences, or structured elements, use a Snippet instead of a variable.
FAQ
Why is my variable not rendering in the article?
Check two things. The merge code must match the variable name exactly, including capitalization and spelling, so copy it from the Merge code value field on the Variables page rather than typing it. And you must type merge code in the Markdown editor or in the unified Editor's Markdown view; it does not work in the Advanced WYSIWYG editor, where you use the slash command instead.
Why does my merge code look different after I switch views in the unified Editor?
In Markdown view, the unified Editor rewrites the short merge code you type into its full Document360 Flavored Markdown (DFM) form. The variable still works. Switch to Block view to see its value in the sentence.
Can I use variables inside snippets?
No. Using variables inside snippets is not supported. If you insert a variable within a snippet, it will not render correctly in the editor preview or in exported outputs such as PDF.
Is there a character limit for variable content?
Yes. Variable content is limited to 300 characters including spaces. For longer or formatted content, use a snippet instead.
Can I change the name or merge code of a variable after it has been created?
No. The Name and Merge code value cannot be changed after the variable is created. You can edit the content of a variable at any time.
What happens to my articles if I delete a variable?
The variable is removed from all articles where it is referenced. The article itself is not modified or republished. On the knowledge base site, surrounding content adjusts automatically and no empty space remains.
In the portal, what you see depends on your editor. In the unified Editor, the article shows the variable's merge code in braces, for example variable.productName wrapped in double curly brackets. In the Advanced WYSIWYG editor and the Markdown editor, the variable is replaced with the placeholder text "Loading...". In either case, replace it with another variable or delete it manually.