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.
Gostaria de repetir a pergunta original. Existe alguma lista em algum lugar agora? Gostaria de saber o que posso usar nas personalizações de texto.
A resposta acima não está correta?
Pode até ser, mas se for, não consigo entender.
Tentei destacar as partes relevantes do código para você na captura de tela abaixo
Geralmente, você está procurando por “substitua {%placeholder} por outro texto”
Obrigado! Vou dar uma olhada.