Liquid techniques
On this page
The articles in this section are task guides rather than reference material. Each one takes a job you need done in a template and walks through the tags, filters, and objects that job needs, so you do not have to assemble the answer from the individual reference pages.
Use the reference sections when you know the name of the thing you need and want its exact behavior. Use these articles when you know the outcome you want and need to work out which pieces get you there.
In this section
- Liquid query — fetch Salesforce records directly in a template with the
querytag, including filtering, ordering, and pagination - Manage singular and plural numeric translations — write translation strings that read correctly for any count
- Analytics and conversion tracking with Customer Events — record customer activity from your templates for analytics and conversion tracking
- Debug a template and find what is slow — inspect values safely with the
debugtag, time a slow region, and cache the result without serving stale or personalized output - Handle errors and validate input — tell the three Liquid failure modes apart, validate request parameters, guard an API response, and check a write is safe before it runs
- Build a customer portal with account-scoped data — let several people from one organization work on the same records, with every query scoped to their account
- Patterns and recipes — twenty worked solutions for cart, account, catalog, performance, and integration jobs, each with the failure mode to watch for
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.