Skip to content

Communication templates

Cadence communication templates use Liquid syntax. You can mix rich email formatting (headings, lists, links) with dynamic values such as member names, enrolment details, and payment amounts.

For a complete list of variables available to each system message, see the template variable reference.

Use double curly braces to output a value:

Hello {{ guardian.display_name }}

Nested properties use dot notation:

{{ enrolment.activity.name }} · {{ enrolment.activity.schedule_summary }}

Repeat a block for each item in a list variable:

{% for payment in payments %}
- {{ payment.amount | cadence_money }}
{% endfor %}

Inside a loop, forloop.index is the 1-based position and forloop.last is true on the final item.

List variables are documented on each action key reference page (for example payments on payment received).

{% if payments.size > 1 %}
Your payments have been received, thank you!
{% else %}
Thank you for your payment.
{% endif %}

Use unless for the inverse, and case / when when matching several discrete values.

Cadence registers filters for common formatting tasks:

Filter Example Result
cadence_date {{ enrolment.start_datetime | cadence_date }} Short Australian date
cadence_date: "long" {{ enrolment.start_datetime | cadence_date: "long" }} Weekday, date, and time
cadence_money {{ payment.amount | cadence_money }} Currency display (default AUD)
cadence_date: "long_date" {{ enrolment.start_datetime | cadence_date: "long_date" }} Date with the month in words, such as 3 September 2026
in_category {% assign holiday = enrolment.activity | in_category: 12 %} True when the activity is in category 12 or one of its subcategories

Filters are applied with a pipe after the value: {{ value | filter_name }}.

in_category works on an enrolment, an activity or a category. Liquid does not allow a filter inside if, so store the answer first, then test it:

{% assign holiday = enrolment.activity | in_category: 12 %}
{% if holiday %}
Bring your holiday program pack.
{% endif %}

Some placeholders work in every message without any setup. Use organisation.name, organisation.email, organisation.phone, organisation.website, organisation.portal_url and organisation.time_zone for your organisation’s details. Use recipient.first_name and recipient.display_name for the person receiving the message. Use current_date for today’s date in your organisation’s time zone, and portal_url for your customer portal address.

Cadence fills recipient in separately for each person, so a message to a family reads correctly for each parent or guardian.

To word a message differently when it is about the person receiving it, compare recipient.id with a member’s id. For example, {% if recipient.id == enroled_member.id %}You are enrolled{% else %}{{ enroled_member.first_name }} is enrolled{% endif %} reads well for an adult who enrols themself and for a parent who enrols a child.

For simple tabular email layouts, use tablerow:

<table>
{% tablerow enrolment in upcoming_enrolments cols:2 %}
{{ enrolment.activity.name }}
{% endtablerow %}
</table>