Fórumok

Calling custom fields in email notifications

Justyna Gralinska, módosítva 9 év-val korábban

Calling custom fields in email notifications

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.13. Legújabb bejegyzések
Hi

I'd like to use some user custom fields in the body of an email notification message.

If I go to Control Panel > Cnfiguration > PortaL Settings > Email Notifications, the existing terms look like this:

[$FROM_NAME$]
[$FROM_ADDRESS$]
etc.

Is there any way of using custom fields I created for Users here?

Thanks

Justyna
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: Calling custom fields in email notifications

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
No.
Justyna Gralinska, módosítva 9 év-val korábban

RE: Calling custom fields in email notifications

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.13. Legújabb bejegyzések
Thank you David. Could I create a hook to enable this?

Justyna
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: Calling custom fields in email notifications

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Probably not. I think they're velocity based (but it has been awhile, could just be code-based replacements), so a hook is not going to get you into where that is handled.

You must realize that some of the emails go out when the user is first created and therefore there is a chance that the user custom fields have not been set. Don't know if that applies to the one(s) you want to play with, but just want you to be aware.
Justyna Gralinska, módosítva 9 év-val korábban

RE: Calling custom fields in email notifications

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.13. Legújabb bejegyzések
I see. This one would be sent after the custom fields are created but I guess I will just leave it alone as it's a 'nice-to-have'.

Thank you.