掲示板

How to read a properties file in vm file

10年前 に Bapun Verma によって更新されました。

How to read a properties file in vm file

New Member 投稿: 1 参加年月日: 13/09/17 最新の投稿
hii,

can anyone help me out??I want to read a properties file in navigation.vm file of my custom theme..can anyone give me some suggestion??

Regards,
Bapun
thumbnail
10年前 に Ahmed Hasan によって更新されました。

RE: How to read a properties file in vm file

Expert 投稿: 306 参加年月日: 07/04/13 最新の投稿
Dear Bapun,

Why don't you make use of "custom settings" in the theme's look-and-feel.xml and read that in our VM file. This will be much cleaner approach than reading from an external properties file.

You can refer to these links to know how to make use of them. It is quite cool and powerful.

https://www.liferay.com/web/raymond.auge/blog/-/blogs/theme-settings-and-new-advanced-controls

https://www.liferay.com/community/forums/-/message_boards/message/14381401

Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
10年前 に Ashok BS によって更新されました。

RE: How to read a properties file in vm file

Junior Member 投稿: 30 参加年月日: 13/08/26 最新の投稿
Hi, can anyone help me with this??

I am trying to have a dropdown in navigation.vm, so my requirement is to read the dropdown values from external properties file? How to achieve it??Please provide me some sample codes if possible.This is urgent,please help me.
thumbnail
10年前 に Jaynil A Bagdai によって更新されました。

RE: How to read a properties file in vm file

Regular Member 投稿: 119 参加年月日: 12/03/03 最新の投稿
Hi Bapun,

You can check messages over this thread.

https://www.liferay.com/community/forums/-/message_boards/message/5429779

--
Jaynil