Merge Template Reference

This page explains how smart templates work using HTML, CSS and tokens.

Overview

The Mail Merge Templates system uses basic HTML along with some mail merge tokens and simple CSS to build the templates.

For more information on general configuration see the Mail Merge Templates page.

Capabilities

The templating system has the following capabilities

  • Fully customisable using HTML templates and CSS styles

  • Insert any content from the merged record, including photos

  • Insert a background image for your letterhead

  • Loop on related content and photos to output lists

  • Add conditional logic to control content based on data in the item, as well as the item's presence in counters, lists or custom search CQL.

  • A default (and extensible) CSS starter pack to control the most common document layouts and formats

Example

The following example shows a basic format for a multi-page letter. This forms the basis for the examples on this page.

Register-specific tokens

Each token has its own set of tokens that map to that register's fields. For information specific to registers, such as Fire Prevention Notices, Permits or Cases, refer to the relevant guides.

Last updated

Was this helpful?