Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi Andrey.
I think this still works:
public static bool IsEditOrPreviewMode
{
get
{
HttpRequest request = HttpContext.Current.Request;
Uri referrer = request.UrlReferrer;
return referrer != null && referrer.Host == request.Url.Host && referrer.Segments[referrer.Segments.Length - 1].Equals( "EditPanel.aspx", StringComparison.InvariantCultureIgnoreCase );
}
}
Hello, everyone!
I need some advice regarding the 'Edit' mode of the EPiServer CMS (v.5). Is there any possibility to exactly detect from the code behind that currently a page is viewed in the 'Edit' mode?