November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You can check in controller action / view if the page is opened in edit mode like this:
if (EPiServer.Editor.PageEditing.PageIsInEditMode) { ... }
Hope this helps
Is there any way to add a class to an element only when the site is viewed in the CMS? I want to hide certain elements on the end user site, but show the content in the CMS so clients can easily edit it.
Thanks!