Hi all,
I thought this may be useful to some of you - we have rejiggered the group hub email invitation in a way we think will be helpful to end-users. Curious for any thoughts on this!
Here's the default group hub email:
Default email invitation
Issues with the default email:
Here is our adjusted version:
Adjusted version
Improvements made:
Curious for your thoughts on these changes / if you have any further improvements to suggest!
I'll include our updated code in a reply to this message, below.
Cheers!
Code below!
Email subject
Invitation to join the $invite.node.title on ${community.title}
Plaintext email
(scroll within the grey box to see the whole thing!)
#set($nodeTypeName = "group")
#set($nodeTypeNameUppercase = "Group")
#if($invite.node.nodeType == "board")
#set($nodeTypeName = "board")
#set($nodeTypeNameUppercase = "Board")
#elseif($invite.node.nodeType == "category")
#set($nodeTypeName = "category")
#set($nodeTypeNameUppercase = "Category")
#end
Hi #if ($invite.receiver.login && $invite.receiver.login!="")$invite.receiver.login,#else there,
#end
$invite.sender.login from ${community.title} invited you to join the $nodeTypeName $invite.node.title. Click ${invite.node.membership.joinLink} to join.
#if ($invite.optionalMessage && $invite.optionalMessage != "")
Message from $invite.sender.login: ${invite.optionalMessage}
#end
#if ($invite.node.description && $invite.node.description != "")
$nodeTypeNameUppercase Description: $invite.node.description
#end
Join this $nodeTypeName: ${invite.node.membership.joinLink}
We look forward to collaborating with you!
Thanks,
${community.title} Team
HTML Email
(scroll within the grey box to see the whole thing!)
#set($nodeTypeName = "group")
#set($nodeTypeNameUppercase = "Group")
#if($invite.node.nodeType == "board")
#set($nodeTypeName = "board")
#set($nodeTypeNameUppercase = "Board")
#elseif($invite.node.nodeType == "category")
#set($nodeTypeName = "category")
#set($nodeTypeNameUppercase = "Category")
#end
<html>
<head>
<title>Invitation to join the $invite.node.title on ${community.title}</title>
</head>
<body>
<p>Hi
#if ($invite.receiver.login && $invite.receiver.login!="")
$invite.receiver.login,
#else
there,
#end
</p>
<p>$invite.sender.login from ${community.title} invited you to join the $nodeTypeName <strong>$invite.node.title</strong>. <a href="${invite.node.membership.joinLink}">Click to join</a>.</p>
#if ($invite.optionalMessage && $invite.optionalMessage != "")
<p><strong>Message from $invite.sender.login:</strong> ${invite.optionalMessage}</p>
#end
#if ($invite.node.description && $invite.node.description != "")
<p><strong>$nodeTypeNameUppercase Description:</strong> $invite.node.description</p>
#end
<p><a href="$invite.node.membership.joinLink">Join this $nodeTypeName</a></p>
<p>Thanks,<br/> ${community.title} Team</p>
</body>
</html>
Some notes on this code:
The logic in the default email allows for invitations to boards and categories, so we maintained this logic. I don't actually think it's currently possible to invite people to boards / categories (since there's no notion of "membership" on those node types presently?) - but we kept the logic in in our version because it felt odd to remove it.
We have renamed "Group Hubs" to "Groups" throughout our community, so also did that here. Ideally I'd retrieve the text string variable for the name of "Group Hubs" that I already set in the community text (general.grouphub and general.Grouphub) - but I couldn't figure out how to do that.
I couldn't figure out how to uppercase the first letter of my $nodeTypeName variable, so I have the somewhat embarrassing "$nodetypeNameUppercase" variable. If someone knows how to do this within a Khoros email template, please let me know!
This is awesome 👏
We've been wanting to get these improved but been ignoring it because it's so painful, this makes it so much easier!
This is awesome @CarolineS
@Kerri could be a great thread for us since we were thinking of looking at email templates
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!