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; } }
public ContentPickerEditorPartOptions(ContentPickerCommonType commonType, PortletBase.PortletViewType viewType) : this(commonType) { ViewType = viewType; }