Ho cercato di capire quale modello di e-mail viene utilizzato quando un utente crea un nuovo argomento in una categoria.
Ho utenti che seguono la categoria e impostati per ricevere notifiche sul primo post.
Pensavo di aver individuato il modello corretto, solo per scoprire che quando creo un nuovo argomento in una categoria specifica, gli utenti ricevono e-mail da modelli diversi.
Questi due utenti hanno ricevuto e-mail diverse:
Uno è amministratore e membro del team, e ha la categoria impostata su “segui primo post”;
l’altro è membro del team e ha la categoria impostata su “segui”.
Ora sono confuso. Come posso determinare quale modello viene utilizzato in base a quale impostazione, o c’è di più?
Dato che il mio obiettivo è definire un modello specifico per una singola categoria:
È possibile configurare un modello fisso per una categoria particolare?
A proposito: esiste da qualche parte un elenco delle variabili disponibili e utilizzabili nel corpo del messaggio? Mi ha sorpreso che %topic_title non venga inserito nel corpo.
There is no listing which template is used when. One has to resolve it upon the E-Mail the users have already gotten, and that may differ upon the watch mode. But there are no further implications s.a. trust level, e-mail level etc.
Also, there is no listing of the replacement elements (variables) which can be used in which parts of the E-Mail templates.
sooo…after quite a while of searching, found that there is no e-mail template for user watching first post, but there are text templates: user_notifications.user_watching_first_post.subject_template & user_notifications.user_watching_first_post.text_body_template.
What I don’t understand: If e-mail templates aren’t necessary for notification e-mails, why are there some and some others not?
I don’t get the whole templating thing. There are body templates that use variables like %{topic_title} and %{topic_excerpt} etc., but if I copy them into eg. user_notifications.user_posted.text_body_template, it says they can’t be used.
Are these templates alterable at all? Which variables can be used? Where is the list of usable variables?
I want to alter the e-mail notifications, preferably for one category, so that they don’t send the whole post in the body any more, but would like to give at least the topic. How can I achieve this?