I would guess:
[#if ctx.editMode]
…
[/#if]
Cheers,
-will
On 09.05.2012, at 23:30, Jean-Francois Nadeau (via Magnolia Forums) wrote:
> I'm migrating to 4.5.2. I'm using freemarker and I need to detect if I'm in
> edit mode. I'm trying this :
>
> [#if cmsfn.editMode]
> We are in edit mode
> [/#if]
>
> But I receive "Expression cmsfn is undefined". How do I need to declare cmsfn?
>
>
> thanks
>
> --
> 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]>
----------------------------------------------------------------