Kentico CMS 7.0 Developer's Guide

E-mail templates

E-mail templates

Previous topic Next topic Mail us feedback on this topic!  

E-mail templates

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

There are three different e-mail templates that can be used when sending notifications about new blog comments, depending on the recipient of the notification:

 

Blog owners - e-mails are based on the Blogs - Notification to blog owner e-mail template

Blog moderators - e-mails are based on the Blogs - Notification to blog moderators e-mail template

Subscribers - e-mails are based on the Blogs - Notification to blog post subscribers e-mail template

 

The following macros can be used in the e-mail templates:

 

Data macros

 

Blog.XXX - where XXX represents a column of the CONTENT_Blog table or the CMS_View_Tree_Joined view

BlogPost.XXX - where XXX represents a column of the CONTENT_Blog table or the CMS_View_Tree_Joined view

Comment.XXX - where XXX is a column of the CONTENT_BlogComment table

CommentUser.XXX - where XXX is a column of the CMS_User table

CommentUserSettings.XXX - where XXX is a column of the CMS_UserSettings table

 

Example: {%CommentUser.Email%}

 

devguide_clip0509

 

Source macros

 

a) Links

 

BlogPostLink - blog post link

BlogLink - blog link

UnsubscriptionLink - unsubscription link

 

b) Others - these macros are present due to backward compatibility purposes

 

UserFullName - the same result as {%Comment.CommentUserName%}

CommentUrl - the same result as {%Comment.CommentUrl%}

Comments - the same result as {%Comment.CommentText%}

CommentDate - the same result as {%Comment.CommentDate%}

BlogPostTitle - the same result as {%BlogPost.BlogPostTitle%}

 

Example: {%BlogPostLink%}

 

devguide_clip0510