Is there a list of supported template fields?

I’m trying to customize our welcome letter, and I can see that there are known field tokens, like:

Welcome to %{site_name}!

Is there a list anywhere of all the valid tokens that can go in a %{token} block?

That’s about the only one. So there is not a list because there aren’t many fields.

The full current list is here:

https://github.com/discourse/discourse/blob/master/lib/email/message_builder.rb#L24-L54

2 Likes

In other words, anything passed in via @opts as well. Have fun tracing that throughout the calling code…

@sam: thanks for this.

I’d like to repeat the original question. Is there a list somewhere now? I’d like to know what I can use in the text customizations.

Is the answer above not correct?

It may well be, but if so, I can’t understand it.

I’ve attempted to highlight the relevant parts of the code for you in the below screenshot

Generally you are looking for “replace {%placeholder} with other text”

Thank you! I’ll take a look.