Fórumok
Closing a tag in ADT + Freemarker
Andew Jardine, módosítva 8 év-val korábban
Closing a tag in ADT + Freemarker
Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
Hey Guys,
I have a freemarker template that I am playing with. One of the things that I want to do is create a <liferay-portlet:renderURL /> using the taglibs, not the portlet URL factory. I have the taglib included like this --
and thenI am trying to use the tags. This works --
but my question is how to I eexpand this to include parameters? This is giving me errors --
.. and I can't seem to find any posts on this! :S
I have a freemarker template that I am playing with. One of the things that I want to do is create a <liferay-portlet:renderURL /> using the taglibs, not the portlet URL factory. I have the taglib included like this --
<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] />
and thenI am trying to use the tags. This works --
<@liferay_portlet.renderURL var="myVar"/>
but my question is how to I eexpand this to include parameters? This is giving me errors --
<@liferay_portlet.renderURL var="myVar">
<@liferay_portlet.param name="var" value="value"/>
<!--@liferay_portlet.renderURL/-->
.. and I can't seem to find any posts on this! :S
Andew Jardine, módosítva 8 év-val korábban
RE: Closing a tag in ADT + Freemarker
Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
Got it.
<@liferay_portlet.renderURL var="myVar">
<@liferay_portlet.param name="var" value="value"/>
<!--@-->