掲示板

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

thumbnail
7年前 に Simon Youngs によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 11/07/12 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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
7年前 に Simon Youngs によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 11/07/12 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Just set these in portal-ext.properties and don't worry about deploying them.
thumbnail
7年前 に Simon Youngs によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 11/07/12 最新の投稿
we were hoping to deploy them for version control, use with our development docker environment and external developers.