Foros de discusión

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

Martin Bunen, modificado hace 12 años.

Overriding portlet.properties in portal-ext.properties

New Member Mensajes: 3 Fecha de incorporación: 9/02/12 Mensajes recientes
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
Jan Gregor, modificado hace 12 años.

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

Regular Member Mensajes: 224 Fecha de incorporación: 20/10/10 Mensajes recientes
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.
Martin Bunen, modificado hace 12 años.

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

New Member Mensajes: 3 Fecha de incorporación: 9/02/12 Mensajes recientes
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!