Hi,
In Magnolia 4.4.x you can write:
${state.previewMode}
or
${mgnl.editMode}
${mgnl.previewMode}
Not sure if these objects are available to templates in 4.5...
Regards from Vienna,
Richard
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Jean-Francois Nadeau (via Magnolia Forums)
Gesendet: Donnerstag, 10. Mai 2012 15:45
An: Magnolia User List
Betreff: [magnolia-user] Re: How to use cmsfn in 4.5.x?
[quote]
[#if ctx.editMode]
…
[/#if]
[/quote]
This is not working :
Expression ctx.editMode is undefined
--
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]>
----------------------------------------------------------------