Creating a notification message template

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

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.

 

devguide_clip0120

 

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.

 

devguide_clip0121

 

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, the 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 the notification gateway which performs the sending of the notification message
{%notificationuser.UserID%} - displays the value of specified user data column from the CMS_Usertable table; this represents the user the notification message is being sent 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)

 

devguide_clip0122

 

Page url: http://devnet.kentico.com/docs/devguide/index.html?creating_a_notification_message_template.htm