Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Zeeshan Khan
How to read property file in Layout creation in LR 6.1
March 20, 2013 9:56 PM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi All,

I want to read property file while craeting Layouts in LR 6.1.

Please suggest some solution for this.

Thanks !!
Bart Simpson
RE: How to read property file in Layout creation in LR 6.1
March 20, 2013 11:44 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

while craeting Layouts in LR 6.1.

not sure what does it means, creating layouts in IDE? or adding a new page in liferay?
May be you can hook for value.object (onAfterCreate) method for layout model, and then read the properties in your code.
If this scenario fits in your requirements, let me know if you need more details
Zeeshan Khan
RE: How to read property file in Layout creation in LR 6.1
March 21, 2013 10:12 PM
Answer

Zeeshan Khan

Rank: Expert

Posts: 349

Join Date: July 20, 2011

Recent Posts

Hi Bart and thanks for the reply...
Actually I am creating a new layout according to the requirements. So there if I need to put some text, I want to read it from Property file same like we use to read in Portlet by Language.properties file under src.

Thanks !