%{*text*} Placholders in Email Templates

Is there a reason i cannot use certain %{text} placeholders in the body of email templates?

For example, I want to use %topic_title in the body of the User Posted email template to provide a brief description of the new post. However I just get the error:

Body : The following interpolation key(s) are invalid: “topic_title”

Likewise for %base_url, %unsubscribe_link and several others.

Any guidance would be much appreciated.

1 Like

It has to do with the way that the interpolation keys are substituted into the text by Discourse. I can see how it would be useful to have the option of using %{topic_title} in the body of an email, but that interpolation key is only available in the email’s subject line.

There is a topic related to this here: Find allowed interpolation keys for email template.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.