Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Distinguish between Edit Mode and Preview Mode


Just like in the title. Is it possible? PageEditing.PageIsInEditMode returns true in both modes.

By Preview Mode I mean this button on the top saying “Toggle preview mode”.

Mar 04, 2013 17:33


Preview mode is actually edit mode with the minimize editing features and tools around. As far as I know, there is no difference on the server side between the two cases. I would recommend not to have the view rendering and edit rendering so different, to ensure the best live editing user experience. However, if it is really needed, you can use javascript to customize property overlays instead.

Edited, Mar 04, 2013 20:47

Maybe this will do the work for you?



Mar 04, 2013 21:40

@Doung Nguyen thanks for clear answer. I know now I should look somewhere else for workaround of my problem.


@Johan, that will not help as it gives true in both cases.

Edited, Mar 04, 2013 22:56

There's still the possibility to guess the current mode from the url, something similar to this:

Mar 28, 2013 18:15
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.