Worked examples

'This page explains use of the Template Content field in Mail Merge templates.

Below are some worked examples that use the concepts included in the system's default Additional CSS.

Standard paragraphs

<p>
    This is a standard paragraph. It will be the full width of the page.
</p>

Two columns

These two paragraphs will be side-by-side in a two-column format.

Tip: put a <br /> at the end of the two paragraphs to avoid formatting problems of the contents following these boxes, in the event that the two boxes aren't the same height.

A warning text box

This puts a big, red warning box onto the page,

Note that in this example, we are also using some text formatting classes — see below.

Using mail merge tokens

Here’s a basic example of mail merge tokens.

This example uses the {$IN_THREE_WEEKS} token, which calculates 3 weeks from today's date. This will display in the correct date format of dd/mm/yyyy .

Alternatively, you can use the due date of the item , {$due}, which is useful if you have Process Workflow Updates on Items turned off for your template. If Process Workflow Updates on Items is turned off, it will still calculate what the due date will be and it will appear in the letter even though it doesn't update the item.

Right box with right justified text

Notice here now the box and text CSS rules are added together to position the text to the right side of the page, and also align the text.

A big, red warning box

Here’s a warning box that combines the box colour, the warning text colour and the alignment to the centre.

Red warning wording without the box

The style for warning-text is different to warning-box, so you can use one or the other.

Adding a top heading to the front page of the notice

To add a heading to the front page of the notice, you can use the top-heading class along with h1, h2, and h3, where each heading 1 is largest and heading 3 is smallest.

This example shows how to make text smaller to fit onto one page.

Last updated

Was this helpful?