Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marcus Hain
Get value of Portal Settings fields
September 28, 2012 5:38 AM
Answer

Marcus Hain

Rank: New Member

Posts: 12

Join Date: November 15, 2011

Recent Posts

Hi all,
how can I read email notification body or subject fields defined in Portal Settings in Java?

Best regards.
Michal R
RE: Get value of Portal Settings fields
October 1, 2012 11:27 AM
Answer

Michal R

Rank: Junior Member

Posts: 25

Join Date: May 28, 2012

Recent Posts

Look in the source of the specific portal configuration page, in this case portal-web/docroot/html/portlet/portal_settings/email_notifications.jsp:

1String adminEmailUserAddedSubject = PrefsPropsUtil.getContent(company.getCompanyId(), PropsKeys.ADMIN_EMAIL_USER_ADDED_SUBJECT);
2String adminEmailUserAddedBody = PrefsPropsUtil.getContent(company.getCompanyId(), PropsKeys.ADMIN_EMAIL_USER_ADDED_BODY);
Marcus Hain
RE: Get value of Portal Settings fields
October 3, 2012 3:26 AM
Answer

Marcus Hain

Rank: New Member

Posts: 12

Join Date: November 15, 2011

Recent Posts

Thank you.