Fórum

Liferay 7 what replaces hooks to make changes to portal.properties

thumbnail
Simon Youngs, modificado 7 Anos atrás.

Liferay 7 what replaces hooks to make changes to portal.properties

Junior Member Postagens: 25 Data de Entrada: 12/07/11 Postagens Recentes
Hi,

So my question is in Liferay 6.2 you could create a simple hook to include settings for the portal.properties, which could be deployed.

How do you do this in Liferay 7 if hooks are now not the correct way?

Regards

Simon
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Liferay 7 what replaces hooks to make changes to portal.properties

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
You have to be more specific...

Some of the properties have just gone away. For example, the startup event listeners are now just registered with OSGi so there is no need to add to properties to pull in.

If you can tell the ones that you're looking for, I can help tell you how to deal with them.
thumbnail
Simon Youngs, modificado 7 Anos atrás.

RE: Liferay 7 what replaces hooks to make changes to portal.properties

Junior Member Postagens: 25 Data de Entrada: 12/07/11 Postagens Recentes
hi,

I was just playing with changing the "admin.email.from.address" as an example. I'm currently just investigating liferay 7 and best practices.
I did manage to create a hook which worked but then saw that hooks were no longer favoured so I was investigating the alternatives.

Some of the things we have changed in past are as follows :-

company.security.auth.requires.https=true
axis.servlet.hosts.allowed=*******
http.header.version.verbosity=Liferay Portal Enterprise Edition
layout.user.private.layouts.auto.create=false
layout.user.private.layouts.enabled=false
layout.user.public.layouts.auto.create=false
layout.user.public.layouts.enabled=false

Simon
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Liferay 7 what replaces hooks to make changes to portal.properties

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Just set these in portal-ext.properties and don't worry about deploying them.
thumbnail
Simon Youngs, modificado 7 Anos atrás.

RE: Liferay 7 what replaces hooks to make changes to portal.properties

Junior Member Postagens: 25 Data de Entrada: 12/07/11 Postagens Recentes
we were hoping to deploy them for version control, use with our development docker environment and external developers.