Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Javier Barrio
Changing Message Boards Email Notification templates
19 gennaio 2013 10.43
Risposta

Javier Barrio

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 29 settembre 2011

Messaggi recenti

Hi,

I have modified the file email_message_added_body.tmpl and reflected the change on portal-ext.properties with a content like this one:

 1Hi [$TO_ADDRESS$]:<br /><br />
 2
 3The users [$COMMENTS_USER_NAME$] has written the following on the thread [$CATEGORY_NAME]:<br/><br/>
 4
 5<i>"[$MESSAGE_BODY$]</i>"<br/><br/>
 6
 7To read it and and answer, click the following link:
 8
 9[$MESSAGE_URL$]<br/><br/>



This has been sent by email, but there are some variables that appear not to be "working":

[$TO_ADDRESS$]: That one appears empty. Tried with TO_NAME with the same results.
[$COMMENTS_USER_NAME$] / [$CATEGORY_NAME]: These variables are not rendered to the user in the email body. They appear as text (as if the parsers were ignoring the dollar symbol).

I would like to know where may I find the complete list of variables that I can use for such a notification.

Thanks in advance!
Jelmer Kuperus
RE: Changing Message Boards Email Notification templates
19 gennaio 2013 16.11
Risposta

Jelmer Kuperus

Punteggio: Liferay Legend

Messaggi: 1192

Data di Iscrizione: 10 marzo 2010

Messaggi recenti

You can always use the source

This seems to be the list :

[$MESSAGE_BODY$]
[$CATEGORY_NAME$]
[$MAILING_LIST_ADDRESS$]
[$MESSAGE_ID$]
[$MESSAGE_SUBJECT$]
[$MESSAGE_URL$]
[$MESSAGE_USER_ADDRESS$]
[$MESSAGE_USER_NAME$]

Your [$CATEGORY_NAME] variable is missting the trailing $
Javier Barrio
RE: Changing Message Boards Email Notification templates
20 gennaio 2013 0.51
Risposta

Javier Barrio

Punteggio: New Member

Messaggi: 14

Data di Iscrizione: 29 settembre 2011

Messaggi recenti

Thanks a lot, Jelmer. I did search before asking, but was unable to find the full list.
Shankar Baba
RE: Changing Message Boards Email Notification templates
15 ottobre 2013 6.09
Risposta

Shankar Baba

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 17 ottobre 2012

Messaggi recenti

Hi javier , could you please tell me the location, where can i find this email_message_added_body.tmpl file in windows machine.Thanks in advance.