Email template, alternative tags?
-
Email templates have content like this:
[{site_title}] {user_first}, You have done …
Congratulations {user_first}!If the user does not have a first name in their profile, the email text looks awkward.
Please consider an enhancement to support new functionality in tags:
{before:tag:after:isnull}
: If the value of the tag is not null, show the before and after text. If the value of the tag is null, show the isnull text.With that new syntax, which won’t affect any existing settings, we can modify templates like this:
[{site_title}]{ :user_first:, y: Y}ou have done …
Congratulations{ :user_first}!That will result in :
[Our Site] Carol, you have done …
Congratulations Carol!or
[Our Site] You have done …
Congratulations!What do you think? Too meticulous? ??
Thanks!
- The topic ‘Email template, alternative tags?’ is closed to new replies.