AnsweredAssumed Answered

Freemarker template date error

Question asked by paulossilva on Dec 10, 2007
Latest reply on Jan 10, 2008 by kvc
Hi,

Using the following code to get the current date in a freemarker template (as stated in the Alfresco template guide)

<#assign datetimeformat="EEE, dd MMM yyyy HH:mm:ss zzz">
${date?string(datetimeformat)}

gets me an error message like this:

error regenerating rendition using resolucoes_sgp.ftl: freemarker.template.TemplateException: Expected number, date, or string. date evaluated instead to freemarker.ext.dom.NodeListModel on line 6, column 3 in freemarker_template.

Any thoughts about that? I'm using the 2.1.0 Community version.

Outcomes