Is it possible via the api to check if the page is being previewed, I need to have some logic in my template that does something slightly different if the page is being previewed via the CMS. I assume there is something as you get the "Preview Mode click to end" banner?
Preview Mode
Hi,
Is it possible via the api to check if the page is being previewed, I need to have some logic in my template that does something slightly different if the page is being previewed via the CMS. I assume there is something as you get the "Preview Mode click to end" banner?
Please respond if you can help?
Cheers
Chris
I found UmbracoContext.Current.InPreviewMode - just what I needed.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.