|
||
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 () 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.
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.