---
title: Use variables
project: CMS
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/cms/1-0/guides/variables/
updated: 2026-11-19T04:30:19.172Z
---

# Use variables

> Keep a value in one place and reuse it on every 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](/files/Jansu238861f.webp)

## 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:

```text
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.
