Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Lior Hadaya
Overriding Liferay Properties
23. April 2012 04:50
Antwort

Lior Hadaya

Rang: Regular Member

Nachrichten: 138

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Hi,
I have Liferay 6.1.10 EE installed.
I was looking at the portal properties in http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Properties+6.0.5#section-Portal+Properties+6.0.5-Portlet and found a few properties I'd like to change.
What do I have to do in order to override these properties? I thought all that was needed is to create a portal-ext.properties file in my Liferay-Home directory and declare the changes in it.

I tried:
users.delete=false
look.and.feel.modifiable=false
layout.comments.enabled=false
but saw no affect.

Maybe I am don't understand correctly what these properties do:
users.delete=false should make it impossible to delete users - but I don't see any option to delete users (only deactivate), so what does this property actually mean?

look.and.feel modifiable - if set to false then the "look and feel" tab in a portlet's configuration should not appear - correct? I tried it (logged in with a user which is not an administrator) but the look-and-feel tab still showed.

layout.comments.enabled - this I really don't understand, where is it possible to add comments to a page? my only guess is the page-commnets portlet, but I saw it wasn't affected when I set the property to false.

Would appreciate if someone could clear this up for me,
Thanks!
Jitendra Rajput
RE: Overriding Liferay Properties
23. April 2012 04:57
Antwort

Jitendra Rajput

Rang: Liferay Master

Nachrichten: 873

Eintrittsdatum: 7. Januar 2011

Neue Beiträge

Lior Hadaya:

but I don't see any option to delete users (only deactivate), so what does this property actually mean?



In Liferay you can not directly delete any user. You first need to deactivate them and then try to search for user with Active state as NO and then you will see delete option.
Lior Hadaya
RE: Overriding Liferay Properties
24. April 2012 02:11
Antwort

Lior Hadaya

Rang: Regular Member

Nachrichten: 138

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Thanks Jitendra, I followed your instruction and I see that users.delete=false does infact work.
Does anyone know about the other two properties, look.and.feel.modifiable & layout.comments.enabled?
Could it be that they can only be defined before running Liferay for the first time, and trying to change them afterwards has no affect?

Thanks
Amit Doshi
RE: Overriding Liferay Properties
1. Mai 2012 03:12
Antwort

Amit Doshi

Rang: Liferay Master

Nachrichten: 549

Eintrittsdatum: 29. Dezember 2010

Neue Beiträge

Hi Lior,

You can check that your property changes is reflected or not ,in Control panel--> Server Administration --> Properties

In that you can check in both portal and System according to the property that you have changed.

Hope it helps,

Thanks & Regards,
Amit Doshi
Hitoshi Ozawa
RE: Overriding Liferay Properties
1. Mai 2012 06:49
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

Could it be that they can only be defined before running Liferay for the first time, and trying to change them afterwards has no affect?


Should work. Make sure you're NOT logged on as an administrator (e.g. test@liferay.com)