AnsweredAssumed Answered

Custom models into templates

Question asked by andrepra on Jun 17, 2006
Latest reply on Jun 19, 2006 by andrepra
I read in wiki (http://wiki.alfresco.com/wiki/Template_Guide) that custom model could be provided to template component as a Map of object. I don't uderstand how to make available this map to template tag.

jsp page

<%
Map myModel = new HashMap();
myModel.put("prop1", "foo");
%>
<r:template id="t6" template="alfresco/templates/my_test.ftl" model="[b]?????[/b]" />

template

The value of prop1=${prop1}

is it possible?
Thanks

Outcomes