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 !!!

Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...