留言板

How to read property file in Layout creation in LR 6.1

thumbnail
Zeeshan Khan,修改在11 年前。

How to read property file in Layout creation in LR 6.1

Expert 帖子: 349 加入日期: 11-7-21 最近的帖子
Hi All,

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

Please suggest some solution for this.

Thanks !!
thumbnail
Bart Simpson,修改在11 年前。

RE: How to read property file in Layout creation in LR 6.1

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
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
thumbnail
Zeeshan Khan,修改在11 年前。

RE: How to read property file in Layout creation in LR 6.1

Expert 帖子: 349 加入日期: 11-7-21 最近的帖子
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 !