Liquid syntax
  • Welcome
  • Introduction
    • What is Liquid syntax?
    • Liquid operators
    • Liquid objects
    • Liquid tags
    • Liquid filters
    • Best practices
  • Information
    • Attributes
    • Consolidation
    • Custom fields
    • Date filter reference
    • Deal pricing
    • Special items
  • PDF renderer
    • PDF document limitations
  • General
    • Address detail
    • Attachments
    • Company
    • Emails
    • Links
    • Phones
    • Store
  • Activity
    • Activity
  • Inventory Check
    • Inventory check (stock check)
    • Inventory check items (stock check items)
  • Invoices & Credits
    • Invoice
    • Invoice items
    • Invoice transactions
    • Invoice taxes
  • Opportunities
    • Opportunity
    • Opportunity items
    • Opportunity item assets
    • Opportunity item surcharges
    • Opportunity costs
    • Opportunity return item assets
    • Consolidated opportunity items
    • Consolidated opportunities
  • People & Organizations
    • Contact
    • Organization
    • User
    • Vehicle
    • Venue
  • Products
    • Product
    • Product group
    • Charging period
    • Product accessories
    • Product assets
    • Stock level
  • Project
    • Project
  • Purchase orders
    • Purchase order
    • Purchase order items
  • Quarantine
    • Quarantine
  • Service
    • Service
  • Testing & inspection
    • Inspection results
    • Inspection result tasks
Powered by GitBook
On this page
  • Objects
  • Tags
  • Filters

Was this helpful?

  1. Introduction

What is Liquid syntax?

Liquid syntax allows you to dynamically place content in document layouts and discussion templates.

PreviousWelcomeNextLiquid operators

Last updated 5 years ago

Was this helpful?

Liquid syntax is a template language used in many web applications. In Current RMS, we use Liquid syntax to place dynamic content and modify data in document layouts and discussion templates.

In Liquid, there are three types of code:

  • objects

  • tags

  • filters

Objects

Objects are surrounded by matched pairs of curly brackets. They tell Current RMS where to show content on a layout.

For example, to output your company name, use:

{{ company.name }}

If you in future, this will be reflected on all documents where you’ve used this Liquid object.

Tags

Tags are surrounded by matched pairs of curly brackets and percent signs. They are used for logic operations and control flow.

For example, to print out your company tax registration number only if you’ve entered one, use:

{% if company.tax_registration_number != blank %}
  {{ company.tax_registration_number }}
{% endif %}

Filters

Filters change the output of a Liquid object. They are placed within an object after a pipe character, with optional data supplied after a colon.

For example, to capitalize your company name, use:

{{ company.name | upcase }}
change your company name in System Setup
Liquid objects
Liquid tags
Liquid filters