Page

Liquid Page

Every page on the site is created by processing templates using specific pre-defined inputs. While much information may be loaded dynamically by tags in the template, there are certain objects that are present on every pageload:

String SiteGUID
The unique identifier for the current site.
request request
An object containing information about the current request.
entity entity
An object containing information about the entity attached to this page. The entity object loaded on the page will be the specific entity type the page was created with (ie: Article, Blog, Blog Post, etc...). See the list of possible Entity Type objects in the menu on the left.
entity page
Deprecated. Use "entity" instead.
site site
An object containing information about the current site - including the custom site settings.
client client
An object containing information about the current "client" - such as the "UserAgent", the first request date, the number of client sessions and pages visited, custom client properties, and more.
cookies cookies
An object containing all of the cookies from the current request (can also be accessed via the client or request objects).
client_permissions client_permissions
An object containing the permissions that are set for the current client. Can also be accessed via the client object.
session session
An object containing information about the current "session", including the session start date, when it will expire if the user does not make any further requests, how many and which pages they have visted, custom client properties, and more.
auth auth
An object containing the results of any authentication methods that have been run. Initially, the only relevent information in this object is {{ auth.logged_in }}, although additional information may be stored on this object after calling various other {% auth %} methods.
profile profile
If the user is currently logged in as a profile, this will reference an object containing information about the profile that they are logged in as.
header_tags header_tags
A placeholder primarily used to inject information into the document header - such as the browser title, meta information, and any stylesheets or javascript added using the {% add_stylesheet %} and {% add_javascript %} tags. Use of this object is entirely optional - if not included in the template then this information will automatically be output directly before the </head> tag in your HTML output.
body_tags body_tags
A placeholder used to inject all of the javascript added to the body using {% add_javascript position:'body' %}. This is also a placeholder for the script that enables the "Edit Page" button to be displayed on your live site when you are logged into Marketpath CMS and viewing your site via https. Use of this object is entirely optional - if not included in the template then this information will automatically be output directly before the </body> tag in your HTML output.
automatic_markup automatic_markup
automatic_markup
boolean mp_editor_preview
Will be true if the user is viewing this page from within Marketpath CMS (primarily from the "Edit Page" interface). Note that this is different, and more specific, than the {{ request.is_preview }} property.