{{ automatic_markup }}

The automatic_markup object is available on every page, and contains information about additional configuration options, scripts, and styles to be included on the page.

Properties

Field Type Description
object_type string Will always be "automatic_markup".
is_valid true/false Will always be true.
head_enabled true/false When true, markup will automatically be injected into the document's <head> element. May be changed using the {% toggle_automatic_markup %} method.
body_enabled true/false When true, javascript may automatically be injected directly before the document's </body> closing tag. May be changed using the {% toggle_automatic_markup %} method.
show_edit_link true/false If true, the "Edit Page" link will be displayed to the user. This should only be true when the user currently viewing the page is signed in to Marketpath CMS, is editing the current site, and when the site is configured to display the edit link. May be disabled (and re-enabled with the previous conditions) using the {% toggle_automatic_markup %} method.
show_preview_code true/false If true, the page will include some additional javascript code to assist with javascript interaction between Marketpath CMS the preview page in the user's browser. This should only be true if the user is editing the page in Marketpath CMS.
powered_by_required true/false Will be true if the Marektpath branding notice is required by the current site's plan.
powered_by_output true/false Will be true after the Marketpath branding notice has been output in the template.
title string The document title - initially the same as entity.browser_title.value but may be modified using the {% set_title %} method.
description string The meta description - initially the same as entity.meta_description, or site.default_meta_description if entity.meta_description is empty. May be modified using the {% set_description %} method.
keywords string The meta description - initially the same as entity.keywords but may be modified using the {% set_keywords %} method.
robots string The meta robots - initially the same as entity.meta_robots but may be modified using the {% set_robots %} method.
canonical_url string The canonical url - which will always be the same as entity.canonical_url.
favicon string The favicon url - which is initially determined by the site settings but may be modified using the {% set_favicon %} method.
stylesheets List The list of stylesheets to be included in the document head, where each stylesheet is an object containing the src and other attributes to be included in the link tag.
header_scripts List The list of scripts to be included in the document head, where each script is an object containing the src and other attributes to be included in the script tag.
body_scripts List The list of scripts to be included in the document body, where each script is an object containing the src and other attributes to be included in the script tag.
header_markup string The markup as it will be output in the document's <head> element. Note that this may change if any methods are called which modify any of the automatic_markup properties (eg: {% add_javascript %}). Also note that if you wish to capture and output the header_markup you must also include {% set_automatic_markup disable header %} in your template.
body_markup string The markup as it will be output directly before the document's </body> closing tag. Note that this may be changed using {% add_javascript position:'body' %}. If you wish to capture and output the body_markup you must also include {% set_automatic_markup disable body %} in your template.