コード例 #1
0
        public ContentPickerEditorPartOptions(ContentPickerCommonType commonType)
        {
            switch (commonType)
            {
            case ContentPickerCommonType.Renderer:
                TreeRoots           = "/Root/Global/renderers;/Root/System/Renderers;/Root/Global/contentviews;/Root/Skins;/Root/System/SystemPlugins;/Root";
                AllowedContentTypes = "File;Folder";
                ViewType            = PortletBase.PortletViewType.Ascx;
                break;

            case ContentPickerCommonType.Ascx:
                TreeRoots           = "/Root/Global/renderers;/Root/System/Renderers;/Root/Global/contentviews;/Root/Skins;/Root/System/SystemPlugins;/Root";
                AllowedContentTypes = "File;Folder";
                ViewType            = PortletBase.PortletViewType.Ascx;
                break;

            case ContentPickerCommonType.ContentView:
                TreeRoots           = "/Root/Global/contentviews;/Root/Skins;/Root";
                AllowedContentTypes = "File;Folder";
                ViewType            = PortletBase.PortletViewType.Ascx;
                break;

            case ContentPickerCommonType.ViewFrame:
                TreeRoots           = "/Root/System/SystemPlugins/ListView;/Root";
                AllowedContentTypes = "File;Folder";
                ViewType            = PortletBase.PortletViewType.Ascx;
                break;

            case ContentPickerCommonType.Icon:
                TreeRoots           = "/Root/Global/images/icons/16;/Root";
                AllowedContentTypes = "File;Image;Folder";
                break;

            case ContentPickerCommonType.Css:
                TreeRoots           = "/Root/Global/styles;/Root/Skins;/Root";
                AllowedContentTypes = "File;Folder";
                break;

            case ContentPickerCommonType.Js:
                TreeRoots           = "/Root/Global/scripts;/Root/Skins;/Root";
                AllowedContentTypes = "File;Folder";
                break;

            case ContentPickerCommonType.FirstManager:
                TreeRoots           = "/Root/IMS";
                AllowedContentTypes = "User";
                break;
            }
        }
コード例 #2
0
 public ContentPickerEditorPartOptions(ContentPickerCommonType commonType)
 {
     switch (commonType)
     {
         case ContentPickerCommonType.Renderer:
             TreeRoots = "/Root/Global/renderers;/Root/System/Renderers;/Root/Global/contentviews;/Root/Skins;/Root/System/SystemPlugins;/Root";
             AllowedContentTypes = "File;Folder";
             ViewType = PortletBase.PortletViewType.Ascx;
             break;
         case ContentPickerCommonType.Ascx:
             TreeRoots = "/Root/Global/renderers;/Root/System/Renderers;/Root/Global/contentviews;/Root/Skins;/Root/System/SystemPlugins;/Root";
             AllowedContentTypes = "File;Folder";
             ViewType = PortletBase.PortletViewType.Ascx;
             break;
         case ContentPickerCommonType.ContentView:
             TreeRoots = "/Root/Global/contentviews;/Root/Skins;/Root";
             AllowedContentTypes = "File;Folder";
             ViewType = PortletBase.PortletViewType.Ascx;
             break;
         case ContentPickerCommonType.ViewFrame:
             TreeRoots = "/Root/System/SystemPlugins/ListView;/Root";
             AllowedContentTypes = "File;Folder";
             ViewType = PortletBase.PortletViewType.Ascx;
             break;
         case ContentPickerCommonType.Icon:
             TreeRoots = "/Root/Global/images/icons/16;/Root";
             AllowedContentTypes = "File;Image;Folder";
             break;
         case ContentPickerCommonType.Css:
             TreeRoots = "/Root/Global/styles;/Root/Skins;/Root";
             AllowedContentTypes = "File;Folder";
             break;
         case ContentPickerCommonType.Js:
             TreeRoots = "/Root/Global/scripts;/Root/Skins;/Root";
             AllowedContentTypes = "File;Folder";
             break;
         case ContentPickerCommonType.FirstManager:
             TreeRoots = "/Root/IMS";
             AllowedContentTypes = "User";
             break;
     }
 }
コード例 #3
0
 public ContentPickerEditorPartOptions(ContentPickerCommonType commonType, PortletBase.PortletViewType viewType)
     : this(commonType)
 {
     ViewType = viewType;
 }
コード例 #4
0
 public ContentPickerEditorPartOptions(PortletBase.PortletViewType viewType) : this(ContentPickerCommonType.Renderer)
 {
     ViewType = viewType;
 }
コード例 #5
0
 public ContentPickerEditorPartOptions(ContentPickerCommonType commonType, PortletBase.PortletViewType viewType)
     : this(commonType)
 {
     ViewType = viewType;
 }
コード例 #6
0
 public ContentPickerEditorPartOptions(PortletBase.PortletViewType viewType) : this(ContentPickerCommonType.Renderer)
 {
     ViewType = viewType;
 }