Spanish Total.js
English
Documentation For AI agents
Contents

Use variables

Keep a value in one place and reuse it on every page.

.md GitHub
On this page

A variable keeps a value, such as a phone number, in one place. Change it once and every page shows the new value.

The Variables screen with the company and phone variables

Create a variable

  1. Open Variables.
  2. In Type a key, enter a name such as phone.
  3. In Type a value and press enter, enter the value and press Enter.

Variables are saved automatically with each change.

Use a variable

Write the key with a dollar sign anywhere in a page or layout:

Call us on $phone

Visitors see the value in its place.

Rules for keys

  • Use only letters and digits. A key such as my_key doesn't work.
  • If no variable has that key, visitors see the text as you wrote it.

Remove a variable

Click the red cross at the end of its row.

Made in Europe