掲示板

Overriding portlet.properties in portal-ext.properties

12年前 に Martin Bunen によって更新されました。

Overriding portlet.properties in portal-ext.properties

New Member 投稿: 3 参加年月日: 12/02/09 最新の投稿
I'm using web form portlet and need to preserve the validation scripts and messages. To do this I have to edit portlet.properties and set validation.script.enabled=true
Is there a way to override the default (false) setting in the portal-ext.properties file? Other than creating an ext plugin?
thumbnail
12年前 に Jan Gregor によって更新されました。

RE: Overriding portlet.properties in portal-ext.properties

Regular Member 投稿: 224 参加年月日: 10/10/20 最新の投稿
Hi there,

So what are you trying to do is override a property in portal.properties right ? If the property is modifable on the run, you can do it in hook, otherwise you need to place your ext file whenever on your classpath, so liferay can read it on startup.

Regards,
Jan.
12年前 に Martin Bunen によって更新されました。

RE: Overriding portlet.properties in portal-ext.properties

New Member 投稿: 3 参加年月日: 12/02/09 最新の投稿
It was portlet.properties. The reason I was asking if portal-ext.properties can override portlet.properties is because it allows to specify whitelisting of portlets, such as: portlet.add.default.resource.check.whitelist=58,... By the same idea I was wondering if something was possible at individual portlet level, but you already answered my question. Thanks!