Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay(7.2) How to get portlet name space in Template (VM)
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.
Please help,
Thank,
Kiran.
Kiran Yalavali:
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.
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 ,
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™