View online
Creating a 'View online' link requires special code, because it's different for every message and not yet known when the template is applied. We dealt with that for you by creating a special macro for this:
<a href="<@onlineLinkUrl/>">View online</a>
Please note that an Archive FlowStep is required if you want to have a view online link, since that's what we will link to. If one is missing but a template requires it, messages will be held. The Archive FlowStep does not need to be set before the Template that refers to it, so you can still for instance insert it at the end of the Flow.
Editable regions
If you want to make regions of a template editable using the Quick editor (real templates only, not applicable to FlowStep settings), you can mark it like this:
<table>
<tr>
<td>
<#-- REGION: intro -->
This is a text.
<#-- END REGION: intro -->
</td>
</tr>
</table>
Every region in a template needs to have a unique name (in this case "intro"). We advise keeping the regions as small as possible, containing only paragraphs of text or other single elements such as a table cell containing a logo image. Using a visual editor to edit more complex structures, although allowed, is tricky and might produce unexpected results.
Include
It's also possible to include other templates. This allows for reusing (parts of) templates. Examples of this include headers, footers, and banners. Having these in separate templates means you can edit them in one place and change them in all relevant messages at once.
Suppose 1040 is the ID of another template in the same account containing a shared footer. Code for including it would look like this:
<#include "1040">
Please note that Editable regions are disabled when using the Quick editor on the 'outer' template. This prevents accidental changes that affect other templates.
Link names
The Flowmailer, you can find the Top Links report under Reports - Flows - (your flow name). The Top Links box shows you the most clicked links from that flow. By default, the url of that link is shown. But what is you want to see more human-legible names in this overview? Simply add a data-name attribute to your links:
<a href = "https://yoururl.com" data-name = "sample link name">Click here</a>
Links with the same name are bundled in the Top Links report.
Special variables
There's a number of special variables available for use in Flowmailer message templates:
Event variables