This powerful template system allows you to create templates with dynamic content that comes from your data sources. This includes additional template files that create conditions and loops for information retrieval and many other exciting features. For complete documentation on all template features, see the Template Toolkit documentation.
Manage templates can be found in the Campaigns / Templates menu. To add a new template, click the Add template button. The template is filled in with the template name and description, and if the template is linked to the data source (s), it selects (selects) from the menu. Only those data sources that were defined for the templates were defined.
Once the template has been created, it can be edited and customized. Each template consists of the main files (HTML and plain text), but it can also contain additional files.
The basic tags used in the master template file are as follows:
- [CONTENT] and [CONTENT_TXT] - loads the campaign's content field from the editor to the template if the [CONTENT_TXT] tag is converted to a non-HTML text variant. One campaign can have up to 10 independent content - using [CONTENT2], [CONTENT3], [CONTENT4] to [CONTENT10], respectively. [CONTENT2_TXT], [CONTENT3_TXT], [CONTENT4_TXT] through [CONTENT10_TXT] for their text.
- [% FOREACH data.DS_RSS_example -%] - Creates a loop over all the data in an RSS data source named EXAMPLE. The loop must be terminated [% END -%]. RSS data fields are returned as [% TITLE -%], [% URL -%], [% DESCRIPTION -%], etc as well as an RSS feed. It is also possible to apply the type of conditions [% IF -%], [% ELSE ], etc. and better adapt the output.
- If you want to include additional files in the template, use the tag [% INCLUDE filename.html -%]. This tag will include in the template an additional file named filename, including all the procedures defined therein. That is, you can use all conditions, loops, data sources, etc. in the optional template files in the same way as in the master template folder.
- Custom tags that are commonly used in email bodies are [SIGNOUT] (inserts a link to unsubscribe from the recipient list) and[TRACK_IMG] (inserts a hidden image for detailed Email reach statistics). If these tags are not included in the template, the system automatically inserts a standard opt-out link and a standard hidden image for email tracking.
Template Code Example:
[% FOREACH data.DS_RSS_EXAMPLE -%]
<a href="[% URL -%]"><img src="[% ENCLOSURE -%]" alt="[% TITLE -%]" /><br />
<a href="[% URL -%]">[% TITLE -%][% DESCRIPTION -%]
[% END -%]
You are receiving this newsletter as a registered user of Example.com. To unsubscribe click <a href="[SIGNOUT]" target="_blank">here, or visit [SIGNOUT] © 2006 - <a href="http://www.example.com/" target="_blank">Example.com</a>