Fórumok

Closing a tag in ADT + Freemarker

thumbnail
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 --


&lt;#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] /&gt;


and thenI am trying to use the tags. This works --


&lt;@liferay_portlet.renderURL var="myVar"/&gt;


but my question is how to I eexpand this to include parameters? This is giving me errors --


&lt;@liferay_portlet.renderURL var="myVar"&gt;
        &lt;@liferay_portlet.param name="var" value="value"/&gt;
<!--@liferay_portlet.renderURL/-->


.. and I can't seem to find any posts on this! :S
thumbnail
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.


&lt;@liferay_portlet.renderURL var="myVar"&gt;
        &lt;@liferay_portlet.param name="var" value="value"/&gt;
<!--@-->