Class ContentTypeSelectionModel
Content type selection model used when creating new content item.
public class ContentTypeSelectionModel
- Inheritance
-
objectContentTypeSelectionModel
- Derived
- Extension Methods
Constructors
ContentTypeSelectionModel()
public ContentTypeSelectionModel()
Properties
ContentFolderID
Gets or sets the ID of the parent folder for the content item.
[ContentFolderSelectorComponent(Label = "{$contenthub.contentitem.create.contentitemparent$}", RootName = "{$contenthub.contentfolder.rootUncategorized$}", Order = 3)]
[RequiredValidationRule]
[VisibleIfSettingsKeyEquals("CMSEnableContentHubFolders", "True", StringComparison.OrdinalIgnoreCase)]
[FormComponentConfiguration(typeof(ContentFolderSelectorConfigurator), "WorkspaceID")]
public int ContentFolderID { get; set; }
Property Value
- int
ContentType
Content type of the content item.
[TileSelectorComponent(ItemsProvider = typeof(ContentItemContentTypesTileSelectorItemsProvider), NoItemsHeading = "{$contenthub.contentitem.nocontenttype.heading$}", NoItemsMessage = "{$contenthub.contentitem.nocontenttype.message$}", Label = "{$contenthub.contentitem.create.contenttype$}", Order = 4)]
[RequiredValidationRule]
public TileSelectorItem ContentType { get; set; }
Property Value
DisplayName
Name of the content item.
[TextInputComponent(Label = "{$contenthub.contentitem.create.contentitemname$}", Order = 1)]
[MaxLengthValidationRule(100)]
[RequiredValidationRule]
public string DisplayName { get; set; }
Property Value
- string
WorkspaceID
Workspace identifier.
[FormComponentConfiguration(typeof(WorkspaceSelectorConfigurator))]
public string WorkspaceID { get; set; }
Property Value
- string