掲示板

How to override portal.properties in liferay 7 GA2 ?

7年前 に lokesh gorrela によって更新されました。

How to override portal.properties in liferay 7 GA2 ?

Regular Member 投稿: 173 参加年月日: 16/03/09 最新の投稿
Hi guys,

I want to override below properties in portal.properties file.
sites.form.update.main.admin
sites.form.update.seo.admin
sites.form.update.advanced.admin
sites.form.update.miscellaneous.admin
sites.form.update.main.siteadmin
sites.form.update.seo.siteadmin
sites.form.update.advanced.siteadmin
sites.form.update.miscellaneous.siteadmin
organizations.form.update.main
organizations.form.update.identification
organizations.form.update.miscellaneous
layout.form.update
layout.set.form.update
layout.form.update.admin
layout.set.form.update.admin

This properties are used in Site pages and Site Settings related jsp's in liferay 6.2 portal code.
In liferay 6.2 I customised properties like this:


If I login as Portal Admin in Site, only below properties values are available to Site Pages and Site Settings Pages.

sites.form.update.main.admin=details,categorization,site-url,site-template
sites.form.update.seo.admin=sitemap,robots
sites.form.update.advanced.admin=default-user-associations,staging,analytics,content-sharing,recycle-bin
sites.form.update.miscellaneous.admin=custom-fields,display-settings

If I login as Site Admin in Site, only below properties values are available to Site Pages and Site Settings Pages.

sites.form.update.main.siteadmin=details,site-url
sites.form.update.seo.siteadmin=sitemap
sites.form.update.advanced.siteadmin=recycle-bin
sites.form.update.miscellaneous.siteadmin=display-settings

organizations.form.update.main=details
organizations.form.update.identification=addresses,phone-numbers,additional-email-addresses
organizations.form.update.miscellaneous=comments

layout.form.update=details,look-and-feel
layout.set.form.update=look-and-feel,logo

layout.form.update.admin=details,seo,look-and-feel,javascript,custom-fields,advanced,mobile-device-rules
layout.set.form.update.admin=look-and-feel,logo,javascript,advanced,mobile-device-rules


Getting this properties into JSP's . See below code:

String[] mainSections = PropsUtil.getArray("layout.form.update");
String[] mainSectionsValues = PropsUtil.getArray("layout.form.update.admin");


Now I want to override same properties and Using that properties in Site Pages and Site Settings related JSP's in liferay 7 GA2 ?

Any body knows about this requirement please give replay.

Thanks
With Regards
Lokesh
thumbnail
7年前 に Juan Gonzalez によって更新されました。

Move to more appropiate category

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Move to more appropiate category