Skip to content

Simple Vars

Scalar variables directly accessible in website templates.

Example

json
"page_name": "Home",
"page_url": "http://www.agency.com",
"meta_title": "",
"meta_description": "",
"template": "home",
"locale": "en",
"office_id": 123,
"category": "blog",
"content_for_header": "<script>var Syngency = ...</script>",
"content_for_layout": "<div> ... </div>",
"content_for_footer": "<script src='.../www.min.js'></script>"

Variables

page_name string
page_url string
meta_title string

Available where templates have a SEO Title field, e.g. Division, Page, Post. Empty if not set.

meta_description string

Available where templates have a SEO Description field, e.g. Division, Page, Post. Empty if not set.

template string
locale string

Determined by a locale segment in the URL, e.g. agency.com/en or agency.com/fr/divisions/main. Defaults to en if no locale is specified.

office_id integer
category string

The active post category determined by the URL, e.g. /blog, /news. Available in the Posts template only.

content_for_header string

Format: html

Required HTML for the <head> of a Syngency website, including definition of the Syngency JS object. Available in the Master template only.

content_for_layout string

Format: html

Renders the current template's output. Available in the Master template only.

content_for_footer string

Format: html

Required HTML for the footer of a Syngency website, including common scripts. Available in the Master template only.