Kentico CMS 7.0 Community Site Guide

Creating the News notification template

Creating the News notification template

Previous topic Next topic Mail us feedback on this topic!  

Creating the News notification template

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

There will be the News page on the site, where news will be added by content editors or site administrators. On the page, users will have the possibility to sign up for receiving notifications about new news items published on the site. You can find a tutorial on creating the page here.

 

In this chapter, we will create a notification template. Notification e-mails will be based on this template. More information about Kentico CMS Notifications module can be found in Kentico CMS Developer's Guide -> Module Notifications.

 

1. Go to Site Manager -> Notifications and switch to the Templates tab.

 

2. From the Sites drop-down list, select My Community Site and click the New template (AddNotificationTemplate) icon.

 

commguide_clip0045

 

3. In the next dialog, enter the following details:

 

Display name: News notification

Code name: NewsNotification

 

Click OK.

 

commguide_clip0048

 

4. Switch to the Text tab and define the template's text the following way:

 

Subject: Community Site News

 

Enter the following template text into both HTML text and Plain text fields:

 

Hello,
 
news item {%notificationcustomdata.newstitle%} has been just published on the Community site. You can see it at {%documentlink%}.
 
You are subscribed for receiving this automatic e-mail notification. If you no longer wish to receive these notifications, please change your preferences in your user profile at the Community Site.

 

Click Save. The template is ready to be used.

 

commguide_clip0050