Kentico CMS 6.0 Developer's Guide

Related e-mail templates

Related e-mail templates

Previous topic Next topic Mail us feedback on this topic!  

Related e-mail templates

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

In Site manager -> Administration -> E-mail templates, you can find the following e-mail templates related to the Friends module:

 

Friends - Friend approval - template for e-mail or message confirming that a user approved your friendship request.

Friends - Friend rejection - template for e-mail or message confirming that a user rejected your friendship request.

Friends - Friend request - template for e-mail or message notifying you about the fact that some user requested your friendship.

 

If you choose to Edit (Edit) some of the templates, you will see two large text fields:

 

Text - text of the template used for e-mails.

Plain text - text of the template used for Messaging module messages.

 

Links in these e-mails need to be handled by a special page containing the Friendship management web part, which is a special web part that ensures handling of these requests.

 

devguide_clip1254

 

Macros in friendship e-mail templates

 

In both fields, you can use the following specific context macros to include dynamic values in their text:

 

{% managementurl %} - returns the frienship management page URL. See Friend management path in Settings for more details.

{% profileurl %} - returns URL of the user who requested the friendship.

{% formattedsendername %} - returns the name of the user who is requesting the friendship in format username (fullname).

{% formattedrecipientname %} - returns the name of the user whose friendship is being requested in format username (fullname).

 

You can also access the following objects and their properties (e.g. {% Sender.UserName %}):

 

{% Sender %} - UserInfo object of the user who is requesting the friendship.

{% Recipient %} - UserInfo object of the user whose friendship is being requested.

{% Friendship %} - FriendInfo object containing information about the current friendship.

 

Besides these special ones, you can also use all other standard macro expressions in the templates. See the Development -> Macro expressions chapter of this guide for more information about macro expressions in Kentico CMS.