Expand my Community achievements bar.

Email template variables for community emails not the same between 5.6.1 and 6.2; help

Avatar

Level 4

The email template variables for community emails have changed between 5.6.1 and 6.2.

Below are examples of 5.6.1 and 6.2. Where can I get a definitive list of template variables for community emails for 6.2?

5.6.1 Sample

subject=[Community Forum] ${topic.subject}

header=<html>\n \

<head>\n \

<title>Community Forum Update</title> \n \

</head>\n \

message=<body>\n \

<P> \n \

Time: ${time}<br>\n \

Forum URL: <a href="${host.prefix}${forum.url}"> ${host.prefix}${forum.url} </a>\n \

</P>\n \

A new reply was posted by ${modifiedBy.fullname} for the Community Forum topic "${topic.subject}".<br><br>\n \

-------------------------------------------------------------------------------------<br>\n \

${post.message} <br>\n \

-------------------------------------------------------------------------------------<br><br>\n \

This is an automatically generated message. Please do not reply.<br> \

Please follow this link to view all replies or modify your subscription to this topic.<br>\n \

<a href="${host.prefix}${topic.url}"> ${host.prefix}${topic.url} </a><br><br>\n \

</body>

footer=</html>

6.2 Sample

subject={{#if this.target.properties.[jcr:title]}}[Forum Post] {{{target.displayName}}} \

{{else}} \

[Forum Post] {{{target.properties.eventTopic}}} \

{{/if}}

message=<!doctype html>\n \

<html>\n \

<head>\n \

<meta name="viewport" content="width=device-width">\n \

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n \

</head>\n \

<body>\n \

<div>{{{object.content}}}</div>\n \

<div>\n \

<hr>\n \

{{#equals this.verb "post"}}\

This forum post was posted to the topic {{#if this.target.properties.[jcr:title]}}"{{{target.displayName}}}"{{else}}"{{{target.properties.eventTopic}}}"{{/if}} by {{{user.name}}} on {{dateUtil this.published format="EEE, d MMM yyyy HH:mm:ss z"}}.\n \

{{/equals}}\

{{#equals this.verb "add"}}\

This forum post was added to the topic {{#if this.target.properties.[jcr:title]}}"{{{target.displayName}}}"{{else}}"{{{target.properties.eventTopic}}}"{{/if}} by {{{user.name}}} on {{dateUtil this.published format="EEE, d MMM yyyy HH:mm:ss z"}}.\n \

{{/equals}}\

{{#equals this.verb "update"}}\

This forum post was updated to the topic {{#if this.target.properties.[jcr:title]}}"{{{target.displayName}}}"{{else}}"{{{target.properties.eventTopic}}}"{{/if}} by {{{user.name}}} on {{dateUtil this.published format="EEE, d MMM yyyy HH:mm:ss z"}}.\n \

{{/equals}}\

{{#equals this.verb "delete"}}\

This forum post was deleted to the topic {{#if this.target.properties.[jcr:title]}}"{{{target.displayName}}}"{{else}}"{{{target.properties.eventTopic}}}"{{/if}} by {{{user.name}}} on {{dateUtil this.published format="EEE, d MMM yyyy HH:mm:ss z"}}.\n \

{{/equals}}\

<hr>\n \

<a href="{{objectUrl}}">Click this link</a> to view all forum posts to this topic or modify your subscription.\n \

</div>\n \

</body>\n \

</html>\n \

2 Replies

Avatar

Level 10

Email templates are under: /etc/notification/email

Avatar

Level 4

In 6.2 the templates are located in /etc/community/templates/subscriptions-email