Use template variables
Audience: CMS editors and integrators.
Use this guide for metadata or a page-template slug that supports variables. You need permission to edit CMS Variables and the target page or template.
Use a CMS Variable
- Choose an uppercase base name with underscores, such as
SHOP_NAME. - Create a CMS Variable with that exact name and the required value.
- Reference the base name with double braces in the target field.
- Save the variable and the page or template.
- Inspect the rendered result in each intended language.
Variable name: SHOP_NAME
Variable value: Autohaus Beispiel
Page meta title: Fahrzeuge bei {{SHOP_NAME}}Create every CMS Variable used by the template. A missing record renders as an empty string. Use the fixed names exactly when configuring system values.
Add a localized value
- Keep the base record as the fallback value.
- Create a locale-specific record, such as
SHOP_NAME.de. - Enter the text for that language.
- Keep
{{SHOP_NAME}}in the template. Do not replace it with{{SHOP_NAME.de}}. - Inspect both the localized page and a language that uses the fallback.
An empty localized value overrides the base value. See template resolution for lookup behavior.
Set a page-template slug
- Select placeholders for the template’s entity type from the placeholder reference.
- Use stable identifiers and descriptive fields.
- Do not use prices, mileage, stock, tags, or validity dates in the path.
- If a path component uses a CMS Variable, create its base and localized records as required.
- Do not include the locale prefix. The application adds it.
- Save the template and inspect a generated page in each intended language.
Use the generated entity path for inventory, products, or collections. Car-deal and generic-page integrations must supply their own data and page-generation flow.
Use triple braces only when trusted CMS content is intended to contain HTML. The syntax reference defines escaping and supported fields.
Last updated on