Liquid objects contain attributes to output dynamic content to the page. For example, the pageobject has an attribute called title that can be used to output the title of the current page.

To access an object attribute by name, use a dot .. To render an object's attribute in a template, wrap it in {{ and }}.

{{ page.title }}

Attributes of an object can also be accessed using a string name and []. This is useful in cases where the desired attribute is determined dynamically, or the attribute name contains characters – spaces, special characters, etc. – that would invalid when using the . syntax.

{{ page["title"] }}

{% assign attribute_name = "Name with spaces" %}
{{ object[attribute_name] }}

Global Objects

The following objects can be used and accessed anywhere, in any template.

entities

Allows you to load any CRM entity by ID.

More info ›

now

A date/time object that refers to the current UTC time, at the time the template is rendered.

Render this value in different formats using Date Filters.

page

Refers to the current portal request page.

The page object provides access to things like the breadcrumbs for the current page, the title or URL of the current page, and any other attributes or related entities of the underlying CRM record.

More info ›

params

A convenient shortcut for request.params.

More info ›

request

Contains information about the current HTTP request.

More info ›

settings

Allows you to load any Site Setting by name.

More info ›

sitemap

Allows access to the portal site map.

More info ›

sitemarkers

Allows you to load any Site Marker by name.

More info ›

snippets

Allows you to load any Content Snippet by name.

More info ›

user

Refers to the current portal user, allowing access to all attributes of the underlying CRM contact record. If no user is signed in, this variable will be null.

More info ›

weblinks

Allows you to load any Web Link Set by name or ID.

More info ›

website

Refers to the portal Website record, allowing access to all attributes of the CRM Website (adx_website) record for the portal.

More info ›