Liferay(7.2) How to get portlet name space in Template (VM)

thumbnail
Kiran Yalavali, modified 5 Years ago. Regular Member Posts: 175 Join Date: 10/15/14 Recent Posts
Hi All,How to get portlet namespace  on a template using Velocity template(VM), but I'm using these line  #set ($ns=$request.portlet-namespace) getting null ,
Please help,
Thank,
Kiran.
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Kiran Yalavali:

Hi All,How to get portlet namespace  on a template using Velocity template(VM), but I'm using these line  #set ($ns=$request.portlet-namespace) getting null ,
The Magic Template Variable Dumper might help. Even though it was last updated for Liferay 7, and it's Freemarker: The context variables all come from the same source, no matter if you use VM or FTL.