Templates are used to customize both the content and format of notifications and reports. Templates can be generic and designed for a large number of notifications, or they can be specially designed to format the content of one specific item. You can create any number of templates.

Templates can take the form of either HTML or plain text documents and can contain images and links to other web pages as well as content that is dynamically created by the system. Although this document describes using HTML templates, usage of plain text templates is the same.

Whenever a template is specified in a notification, you can select the type of delivery device. This allows you, for a single notification, to create custom templates for specific devices. Default templates are provided for each type of device, so if you do not specify a template, Smart Notification uses the appropriate default template.

Template tokens

Templates contain special tokens specific to the system. The tokens allow you to position and format many of the attributes of a notification. These tokens are replaced with dynamic content created by the system whenever content is generated using the template.

Text or HTML outside of these tokens is not modified during the merging of the dynamic content. Templates support cascading style sheets, allowing you to specify the formatting, fonts, font sizes, foreground and background colors etc.