cmsfn is in freemarker mapped to
info.magnolia.templating.functions.TemplatingFunctions class. I don't see any
linkForWorkspace() method there. There's a link() method that takes workspace
name and uuid as parameters if that is what you are looking for. This method is
named differently in JSP (where
info.magnolia.templating.jsp.cmsfn.JspTemplatingFunction is used) since JSP
doesn't allow overriding method names for functions.
HTH,
Jan
On Aug 27, 2012, at 11:04 PM, labib farag (via Magnolia Forums) wrote:
> hi , thanks for replying
> i changed cmfntest to smsfn and the error still found
> this is server log
>
> Caused by: freemarker.core.InvalidReferenceException: Expression
> cmsfn.linkForWorkspace is undefined on line 27, column 21 in
> templating-kit/pages/section/sectionHeader.ftl.
> at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
> at
> freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:114)
> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
> at freemarker.core.Expression.getStringValue(Expression.java:93)
> and this is my code
> <div id="section-img">
> <table>
> <tr>
> <td><img
> src="/magnoliaAuthor/dms/demo-project/img/logos/magnolia-logo-print.gif"></td>
> <td><img
> src="/magnoliaAuthor/dms/demo-project/img/logos/magnolia-logo-print.gif"></td>
> <td><img
> src="/magnoliaAuthor/dms/demo-project/img/logos/magnolia-logo-print.gif"></td>
> [b]This is line 27[/b] <td><img
> src="${cmsfn.linkForWorkspace(content.secImg,content.secImgDmsUUID)}" /></td>
> </tr>
> </table>
> </div>
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=2c1c8ffe-e40e-489d-811b-52873341c4b2
>
>
> ----------------------------------------------------------------
> 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]>
> ----------------------------------------------------------------
-
Best regards,
Jan Haderka, PhD.
Magnolia International Ltd.
http://www.magnolia-cms.com
--------------------------------------
Magnolia® - Yes, we're open!
----------------------------------------------------------------
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]>
----------------------------------------------------------------