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.
Je voudrais répéter la question originale. Y a-t-il une liste quelque part maintenant ? J’aimerais savoir ce que je peux utiliser dans les personnalisations de texte.
La réponse ci-dessus n’est-elle pas correcte ?
C’est peut-être le cas, mais si c’est le cas, je ne peux pas le comprendre.
J’ai essayé de surligner les parties pertinentes du code pour vous dans la capture d’écran ci-dessous
En général, vous recherchez « remplacer {%placeholder} par un autre texte »
Merci ! Je vais y jeter un œil.