> ## Documentation Index
> Fetch the complete documentation index at: https://docs.signagelab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metas

> Store custom data on screens and categories and use it in content, so one campaign shows something different at each branch.

Metas are custom data you can set on categories and screens, for example a store's opening hours, the price of a drink, or the location of a branch. Campaigns read the value based on the screen they play on. One campaign can therefore show different opening hours or different prices at each branch, and you don't have to create a separate campaign for every branch.

Working with metadata takes two steps:

1. On the **Metas** tab, you create a **meta key**: the definition of the data, for example *Opening hours* with the key `opening_hours`.
2. In categories and screens, you fill in its **values**.

## Meta key list

In the **Screens** section, open the **Metas** tab. For each key, you see its **Name**, **Type**, and **Key**. Use the **Type** filter to show only keys of a certain type.

![List of meta keys](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/screens/metas/metas-list-v2.en.png)

## Meta key types

| Type | What it's for |
| - | - |
| **Text** | Any text, for example opening hours, a price, or a web page address. |
| **Image** | A single image from the file library, for example the branch logo. |
| **Media List** | Several images or videos, for example food photos for a menu board. |
| **String List** | A fixed list of options, one of which is selected on the screen or category. |
| **Location** | The location of the branch, for example for campaigns that follow the weather at the screen's location. |
| **Media Playback Transition** | The type and direction of the transition between media on the screen. |
| **Touch Kiosk module theme** | The look of touch kiosk campaigns. |

## Creating a meta key

**1. Choose the type**

On the **Metas** tab, click **Create Meta** and choose the type.

![Choosing the meta key type](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/screens/metas/meta-type-picker.en.png)

**2. Fill in the details**

* **Key**: the technical identifier used to reference the value in content. Only lowercase letters and underscores are allowed, for example `opening_hours`.
* **Name**: a clear name you'll see in the CMS, for example *Opening hours*.
* **Description**: optionally, what the data is for.
* **Editable by Menu Board manager** (for text): a user with the Menu Board manager role can then also change the value, see [Menu Board manager view](https://docs.signagelab.com/cms/role-views/menuboard-manager.md).

![Form for a text meta key](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/screens/metas/new-text-meta-form.en.png)

**3. Save**

Click **Submit**.

To edit a key, click its name in the list. You can also delete it there, in the **Danger zone**.

## Setting values

Values are inherited much like screen settings: a value set on a category applies to all screens in it and in its nested categories. A screen or subcategory can replace it with its own value.

**1. Set the value on a category**

Open the category, click **Update Category**, and go to the **Metas** tab. Fill in the values and save them.

![Meta values in the Prague Store category](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/screens/metas/category-meta-values.en.png)

**2. Optionally replace it on a screen**

In the screen detail, open the **Meta Data** tab. Inherited values are shown read-only with a **Replace** button. After you click it, you can enter a custom value for this screen. **Cancel** ends editing without saving.

![Values inherited from the category in the screen detail](https://signagelab-alfa-space.fra1.digitaloceanspaces.com/documentation/images/cms/screens/metas/screen-meta-inherited.en.png)

To remove a screen's or category's own value, click **Delete**. The screen then uses the value inherited from the category again.

## Where metas are used

* **Website**: the **`{{ Meta }}`** button next to the address field inserts a `{{key}}` placeholder into the URL, for example `https://booking.example.com/?branch={{branch}}`. On each screen, it's replaced with that screen's value. See [Website](https://docs.signagelab.com/cms/campaigns/campaign-website.md) and [Browser](https://docs.signagelab.com/cms/campaigns/campaign-browser.md).
* **Menu Board**: menu items can show the value of a meta key instead of a fixed value, for example a price or a photo. See [Menu Board](https://docs.signagelab.com/cms/campaigns/campaign-menuboard.md).
* **Conditional Playback**: a campaign can use the screen's **Location**. See [Conditional playback](https://docs.signagelab.com/cms/campaigns/campaign-conditional-playback.md).
* Other campaign types, such as **Touch Kiosk** or **Event promotion**, can use metas in fields that have the **`{{ Meta }}`** button.

## Deleting a meta key

> [!WARNING]
>
> Deleting a key permanently deletes all its values on screens and in categories as well. The devices of screens that used the values get a new playlist.

## FAQ

> [accordion] What's shown when a screen has no value set?
>
> If the value isn't set on the screen or in any parent category, the content has nothing to fill it in with. We recommend setting the value on the top-level category and replacing it on screens only where needed.

> [accordion] Can I change the key after it's created?
>
> You can edit the name and description at any time. The **Key** itself can't be changed after creation, because campaigns reference it. If you need a different key, create a new one and move the values and campaigns over to it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.