Hi all ,
First accessing service of liferay in velocity we have to enable serviceLocator.
You have to right below line to enable to servicLocator in portal-ext.properties file & restart server.
where to find portal-ext.properties click here.
journal.template.velocity.restricted.variables=
First accessing service of liferay in velocity we have to enable serviceLocator.
You have to right below line to enable to servicLocator in portal-ext.properties file & restart server.
where to find portal-ext.properties click here.
journal.template.velocity.restricted.variables=
Now in template right below code to get particular user field value..