1. Go to Site Manager -> Development -> Notifications and switch to the Templates tab. Using the Sites drop-down list, you can select which site will be the template used by. If you choose (global), the template will be available for all sites. When selected, click the New template link. You will be redirected to the New template form.
2. On the New template form, enter the following details:
• | Display name - display name of the template |
• | Code name - code name of the template |
Click OK. The template will be created.
3. Now you should see the same form that you've just filled, but in a General tab, while another tab called Text is also available. Switch to the Text tab.
On this tab, text of the notification message can be defined. You should see sections for each of the defined gateways. Texts can be set separately for each gateway, so that for one event, you can have different texts sent via e-mail and via SMS. Each of the sections contains the gateway name and some of the following three fields, depending on the gateway settings:
• | Subject - message subject text |
• | HTML text - text of the message in HTML format |
• | Plain text - text of the message in plain text format |
The following macros can be used in your notification templates:
• | {%notificationsubscription.SubscriptionID%} - displays the value of specified data column from the Notification_Subscription table; this represents subscription information |
• | {%notificationgateway.GatewayID%} - displays the value of specified data column from the Notification_Gateway table; this represents notification gateway which performs sending notification message |
• | {%notificationuser.UserID%} - displays the value of specified user data column from the CMS_Usertable table; this represents user the notification message is sending to |
• | {%notificationcustomdata.XXX%} - displays the value of specified data column from custom data source. Columns from View_CMS_Tree_Joined and the document type's table can be used (e.g. CONTENT_article for cms.article document type). |
• | {%documentlink%} - displays the link to the document (for content event notifications only) |
Page url: http://devnet.kentico.com/docs/devguide/index.html?creating_a_notification_message_template.htm