Liquid Templates
Liquid is an open-source template language integrated into Adxstudio Portals. It can be used add dynamic content to pages, and to create a wide variety of custom templates.
What Can I Do with Liquid?
- Add dynamic content directly to the Copy field of a Web Page, or the content of a Content Snippet.
- Create a custom Page Template, entirely through configuration within CRM, for use throughout the Adxstudio Portals content management system.
- Create a custom website header and footer, entirely through configuration within CRM.
In all of these scenarios, you'll have dynamic access to familiar Adxstudio Portals features, such as Entity List, Content Snippets, Site Settings, and Web Links.
Basics
Get an overview of the Liquid template language and how it integrates into Adxstudio Portals.
Objects
Objects contain attributes that are used to display dynamic content on the page. Access the attributes of the current page, and other Adxstudio Portals data.
{{ page.title }}
Tags
Tags make up the programming logic that tells templates what to do.
{% if user.fullname == 'Dave Bowman' %} Hello, Dave. {% endif %}
Filters
Filters are used to modify the output of strings, numbers, variables, and objects.
{{ 'hal 9000' | upcase }} <!-- Output: HAL 9000 -->