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]> ----------------------------------------------------------------
