hello all,
thanks for your replies!
Federico, I have noticed these libraries but I don't know how to implement the 
old functions (like cms:out) to these new libraries. So, stupid question: How 
do you know a syntax like "${cmsfn.link(content.image)}" I would never have 
guessed that.

However, unfortunately the code is not working for me.

I tried using jsp, but I got this error message:

[code]Template Error!

Error while rendering [/helloworld/main/00] with template 
[templating:components/imageBlock]:
RenderException: Can't render template 
/templates/components/imageBlock.jsp[/code]

This is what catalina.out prints:
http://pastebin.com/eVSHUMgZ (take a closer look to line 142)

So I tried using freemarker. But I get errors as well:

[code]FreeMarker template error!



No signature of method link matches the arguments
The problematic instruction:
----------
==> ${cmsfn.link(content.image)} [on line 2, column 18 in 
templates/components/imageBlock.ftl]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: No signature of method link matches 
the arguments
        at 
freemarker.ext.beans.MethodMap.getMemberAndArguments(MethodMap.java:94)
        at 
freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:101)
        at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)[/code]

Catalina.out:
http://pastebin.com/2W2aFkWa

I 
[url=http://forum.magnolia-cms.com/forum/thread.html?threadId=632095c9-58df-4727-a6a1-c72c50ea29e7&page=1#76404dc8-4797-44ce-a348-f04a58d5af78]read[/url]
 that I don't need declare cmsfn in ftl, so why does this error occur?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=2b969df8-d962-45e4-a2fd-ebae14ba2fa7


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to