26 April, 2012

Read portal-ext.properties value in VM file


If you want to read  portal-ext.properties file in  VM template, just follow below steps :

portal-ext.properties
your.key1=Your Value
your.key2=value1,value2,value3,value4



VM
#set($ key1 = $propsUtil.get("your.key1") )
#set($ key2 = $propsUtil.get("your.key2") )



Key 1: $ key1
Key 2: $ key2

Enjoy !!!

Rate Me:

Create Servlet Project as Module

You would have seen that many times we are writing out own servlet in Liferay portal to achieve some specific use case. In DXP, You can st...