Hi Andreas,

Try:

MgnlContext.getAggregationState().isPreviewMode();

Cheers,
 Brad

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andreas Weder
Sent: Tuesday, 29 September 2009 7:20 PM
To: Magnolia User-List
Subject: [magnolia-user] Detecting preview mode in VirtualURIMapping


Hi, fellow Magnolians,

how do I properly detect preview mode in a VirtualURIMapping implementation?

I've implemented my own VirtualURIMapping classs. I'd like to only enable
the mapping it defines, if I'm either on a public instance or in preview
mode in an author instance. I've tried using
MagnoliaTemplatingUtiltities.getInstance().isEditMode() or
CmsFunctions.isEditMode(), but both always return true on my author
instance. 

So how do I properly do that?

Thanks for your help
Andreas


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to