[quote]
Did you use the "dam" control for testing it? And did you upload a file or did
you browse in the dms? I did the latter. "${content.image}" is returning a
String with the value "dms" then. So your code couldn't work since the
[url=http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ref/4.5.1/magnolia-templating-jsp/tlddoc/cmsfn/link.fn.html]link
method[/url] is expecting a parameter of the type
info.magnolia.jcr.util.ContentMap. So I received the error message that "dms"
is a String and not a ContentMap of course. Again: How is this working for you?
[/quote]
I used samples module, no dms
http://svn.magnolia-cms.com/view/community/magnolia/trunk/magnolia-templating-samples/src/main/resources/samples/components/howTo.ftl
[quote]Just for the record, I tried the code using freemarker:
Expression cmsfn.linkForWorkspace is undefined on line 3, column 28 in
templates/components/ServicesParagraph.ftl.
The problematic instruction:
----------
==> ${cmsfn.linkForWorkspace(content.image,content.imageDmsUUID)} [on
line 3, column 26 in templates/components/ServicesParagraph.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression cmsfn.linkForWorkspace is
undefined on line 3, column 28 in templates/components/ServicesParagraph.ftl.
I'm not getting it...I thought I don't have to declare the cmsfn taglib so why
is "cmsfn.linkForWorkspace" undefinied?![/quote]
Did you perhaps installed the blossom module? In that case you need to expose
the cms functions in blossom-servlet.xml as explained here
[url]http://documentation.magnolia-cms.com/modules/blossom.html#Configuration[/url].
If you are using a custom renderer, you have to make sure that it is configured
correctly, namely that it has the following contextAttributes, something like
this (this is the STK renderer so it also has stk functions)
[url]http://i.imgur.com/e0wSv.png[/url].
HTH,
Federico
--
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]>
----------------------------------------------------------------