I'm trying to create a link in a Liferay template using Velocity.
My code is the following, based on several examples on the net:
#set ($plid = $getterUtil.getLong($request.get('theme-display').get('plid')))
#set ($u = $portletURLFactory.create($request,"1",$plid,"RENDER_PHASE"))
$u.setParameter("struts_action","/asset_publisher/applyForJob");
<a href="$u">yyy</a>
I get the plid value, but my URL will be just ending with $u, it seems that the $portletURLFactory.create()
method is not properly interpreted.
Any ideas? Thank you!