掲示板

Calling custom fields in email notifications

9年前 に Justyna Gralinska によって更新されました。

Calling custom fields in email notifications

New Member 投稿: 19 参加年月日: 13/08/13 最新の投稿
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
9年前 に David H Nebinger によって更新されました。

RE: Calling custom fields in email notifications

Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
No.
9年前 に Justyna Gralinska によって更新されました。

RE: Calling custom fields in email notifications

New Member 投稿: 19 参加年月日: 13/08/13 最新の投稿
Thank you David. Could I create a hook to enable this?

Justyna
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Calling custom fields in email notifications

Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
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.
9年前 に Justyna Gralinska によって更新されました。

RE: Calling custom fields in email notifications

New Member 投稿: 19 参加年月日: 13/08/13 最新の投稿
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.