Created
November 14, 2022 20:28
-
-
Save deanebarker/4f91e59ef3708c8f79e4e5ca6e63a450 to your computer and use it in GitHub Desktop.
Code to hide preview and on-page edit views for content that has no visual component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [UIDescriptorRegistration] | |
| public class HideVisualViewUIDescriptor : UIDescriptor<[Page Type or interface> | |
| { | |
| public HideVisualViewUIDescriptor() : base() | |
| { | |
| DefaultView = CmsViewNames.AllPropertiesView; | |
| EnableStickyView = false; | |
| DisabledViews = new[] { CmsViewNames.PreviewView, CmsViewNames.OnPageEditView }; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment