Lists content types for selection. Selected content types are stored in querystring format (ContentTypeId=GUID&ContentTypeId=GUID&...) or as the string 'all' if all content types are selected.
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="core_v2_contentTypeList" strictContentTypes="false" isSearchable="false" isBookmarkable="false" isCommentable="false" isLikeable="false" isAbuseChecking="false" singleSelect="false" />
Plugin Configuration C#
var property = new Property { Id = "propertyId", LabelResourceName = "nameResource", DescriptionResourceName = "descriptionResource", DataType = "custom", Template = "core_v2_contentTypeList", Options = new NameValueCollection { { "strictContentTypes", "false" }, { "isSearchable", "false" }, { "isBookmarkable", "false" }, { "isCommentable", "false" }, { "isLikeable", "false" }, { "isAbuseChecking", "false" }, { "singleSelect", "false" } } };
Options
Name | Description | Default | Options |
---|---|---|---|
strictContentTypes | When true, only content types that are only content types (and not content types that are also application or container types) are listed. | false | true, false |
isSearchable | When true, only content types supporting search are listed. | false | true, false |
isBookmarkable | When true, only content types supporting bookmarks are listed. | false | true, false |
isCommentable | When true, only content types supporting comments are listed. | false | true, false |
isLikeable | When true, only content types supporting likes are listed. | false | true, false |
isAbuseChecking | When true, only content types supporting abuse checking are listed. | false | true, false |
singleSelect | When true, only a single content type can be selected. | false | true, false |