AnsweredAssumed Answered

Custom methods.

Question asked by spazzm on Mar 24, 2006
Latest reply on Jan 26, 2007 by kevinr
Hi, I'm new to Alfresco and this forum, please be gentle.

I'm trying to add a custom method to Alfresco so that I can do the following in my templates:
${doSomething(document.some.property)}

If I've understood the explanation of custom methods in the Wiki correctly, this is done through FreeMarker custom methods.

I've created a simple TemplateMethodModel implementation and tested it within FreeMarker.

How do I go about adding it to Alfresco in a way that makes it available to templates?

Outcomes