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?
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
In other words, anything passed in via @opts as well. Have fun tracing that throughout the calling code…
@sam: thanks for this.
Ich möchte die ursprüngliche Frage wiederholen. Gibt es irgendwo eine Liste? Ich möchte wissen, was ich in den Textanpassungen verwenden kann.
Ist die obige Antwort nicht korrekt?
Das mag sein, aber wenn dem so ist, kann ich es nicht verstehen.
Ich habe versucht, die relevanten Teile des Codes für Sie im folgenden Screenshot hervorzuheben
Im Allgemeinen suchen Sie nach „ersetze {%placeholder} durch anderen Text“
Danke! Ich werde es mir ansehen.