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.
Vorrei ripetere la domanda originale. Esiste una lista da qualche parte ora? Vorrei sapere cosa posso usare nelle personalizzazioni del testo.
La risposta sopra non è corretta?
Potrebbe anche essere, ma se lo è, non riesco a capirlo.
Ho tentato di evidenziare le parti pertinenti del codice per te nello screenshot sottostante
Generalmente stai cercando “sostituisci {%placeholder} con altro testo”
Grazie! Darò un’occhiata.