public static void DisablePreview(this UIDescriptor descriptor) { descriptor.AddDisabledView(CmsViewNames.PreviewView); }
public static void DisableOnPageEditView(this UIDescriptor descriptor) { descriptor.DefaultView = CmsViewNames.AllPropertiesView; descriptor.AddDisabledView(CmsViewNames.OnPageEditView); }
private static void Setup <TType>(bool globallyEnabled, out TreeIconUIDescriptorInitialization initializableModule, out UIDescriptor descriptor) where TType : IContent { ConfigurationManager.AppSettings[Constants.AppSettings.EnableTreeIcons] = globallyEnabled.ToString(); initializableModule = new TreeIconUIDescriptorInitialization(); descriptor = new UIDescriptor(typeof(TType)); }