Пример #1
0
 public static void DisablePreview(this UIDescriptor descriptor)
 {
     descriptor.AddDisabledView(CmsViewNames.PreviewView);
 }
Пример #2
0
 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));
 }