hello federico
thanks for your awaited reply ;-) i tried the jsp example and get the error:
The attribute prefix cmsfn does not correspond to any imported tag library
i doublechecked the url to cmsfn but it seems ok and i have no idea, what is
being wrong? if i change the code to
[code]
<c:choose>
<c:when test="${cmsfn.editMode}">
edit mode
</c:when>
<c:otherwise>
not edit mode
</c:otherwise>
</c:choose>
[/code]
it works, but i cannot find this expression in any documentation (> cmsfn
taglibs doc 4.5.1)…
kind regards tobias
Am 10.05.2012 um 16:34 schrieb federico grilli (via Magnolia Forums):
> Hi,
>
> in Magnolia 4.5 you write something like the following (no need to declare
> cmsfn in ftl)
> [code]
> [#if cmsfn.isEditMode() ]
> edit mode
> [#else]
> not edit mode
> [/#if]
> [/code]
> In JSP you first declare the cmsfn
> [code]
> <%@ taglib prefix="cmsfn"
> uri="http://magnolia-cms.com/taglib/templating-components/cmsfn"%>
> [/code]
> and then write
> [code]
> <c:choose>
> <c:when test="${cmsfn:isEditMode()}">
> edit mode
> </c:when>
> <c:otherwise>
> not edit mode
> </c:otherwise>
> </c:choose>
> [/code]
>
> HTH,
>
> Federico
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=632095c9-58df-4727-a6a1-c72c50ea29e7
>
>
> ----------------------------------------------------------------
> 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]>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
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]>
----------------------------------------------------------------