Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
venka reddy
Portal.properties
April 18, 2012 4:27 AM
Answer

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts

Hi,

How to configure portal-ext.properties in plugin??
Dhrutika Vyas
RE: Portal.properties
April 18, 2012 4:38 AM
Answer

Dhrutika Vyas

Rank: Expert

Posts: 435

Join Date: February 9, 2009

Recent Posts

Hi,

You need to create your portal-ext.properties at this path: your \ext\your -ext \docroot\WEB-INF\ext-impl\src\portal-ext.properties

Regards,
Dhrutika
venka reddy
RE: Portal.properties
April 18, 2012 5:17 AM
Answer

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts

Hi,

I am developing a plugin ,as path project-name \docroot\WEB-INF\src

so i need to keep Portal.properties at this path???
David H Nebinger
RE: Portal.properties
April 18, 2012 5:22 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7252

Join Date: September 1, 2006

Recent Posts

Looks like a portlet plugin, and you cannot do portal-ext.properties there.
Hitoshi Ozawa
RE: Portal.properties
April 18, 2012 8:08 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

As David replied, instead of portal.properties, it's better to use portlet.properties. See page below on how to set it up.

http://www.liferay.com/community/wiki/-/wiki/Main/How+to+add+a+Properties+File+to+a+Portlet
venka reddy
RE: Portal.properties
April 19, 2012 12:23 AM
Answer

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts

Hi Hitoshi,

I have configured Portlet.properties at project-name \docroot\WEB-INF\src as

include-and-override=portal-ext.properties

Is it correct?
David H Nebinger
RE: Portal.properties
April 19, 2012 12:09 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7252

Join Date: September 1, 2006

Recent Posts

Based on your other thread, no it will not work.

The portal-ext.properties file is read by the portal at startup. Therefore it must be in the classpath for the portal. Your portlet will never have the scope the portal needs to find the portal-ext.properties file.

Whatever you're trying to accomplish by going outside of the norm is going to end in failure. Just push the file up to ROOT/WEB-INF/classes like everyone else does.
Hitoshi Ozawa
RE: Portal.properties
April 27, 2012 7:33 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

As David answered, if you're thinking about overwriting liferay's portal-ext.properties from a portlet, that's not going to work because that property is loaded when liferay starts up. If you just want to have properties file for your own portlet, you can put it in your portlet's WEB-INF/classes directory. This property file will be read when the portlet is deployed.