Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hoping this is a straight forward question, but can anyone tell me what the code is to check if a page is in preview mode. I know what it was in Umbraco 7, but doesn't seem to work in 8.
One thing you will find when in preview mode is a cookie named UMB_PREVIEW with the value preview. When that guy exist, you are in preview mode.
The UmbracoContext also hold a flag telling you if it is preview mode: UmbracoContext.InPreviewMode
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted