Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Lord 58 posts 211 karma points
    Apr 02, 2011 @ 11:54
    Chris Lord
    0

    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

  • Chris Lord 58 posts 211 karma points
    Apr 02, 2011 @ 12:37
    Chris Lord
    102

    I found UmbracoContext.Current.InPreviewMode - just what I needed.

  • 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.

Please Sign in or register to post replies