Class ContentItemSelectorComponentAttribute
- Namespace
- Kentico.Xperience.Admin.Base.FormAnnotations
- Assembly
- Kentico.Xperience.Admin.Base.Shared.dll
Indicates that the ContentItemSelector form component will be used for editing of this property value in the administration interface.
public class ContentItemSelectorComponentAttribute : FormComponentAttribute
- Inheritance
-
objectAttributeContentItemSelectorComponentAttribute
- Inherited Members
- Extension Methods
Remarks
The underlying property must be of the type 'System.Collections.IEnumerable<ContentItemReference>'.
Constructors
ContentItemSelectorComponentAttribute(string)
Initialize new instance of ContentItemSelectorComponentAttribute.
public ContentItemSelectorComponentAttribute(string contentTypeName)
Parameters
contentTypeName
stringContent type name.
Exceptions
- ArgumentNullException
Thrown when
contentTypeName
isnull
.
ContentItemSelectorComponentAttribute(string[])
Initialize new instance of ContentItemSelectorComponentAttribute.
public ContentItemSelectorComponentAttribute(string[] contentTypeNames)
Parameters
contentTypeNames
string[]Content type names.
Exceptions
- ArgumentNullException
Thrown when
contentTypeNames
isnull
.
ContentItemSelectorComponentAttribute(Type)
Initialize new instance of ContentItemSelectorComponentAttribute.
public ContentItemSelectorComponentAttribute(Type contentTypeFilter)
Parameters
contentTypeFilter
TypeFilters allowed content types or reusable field schemas. Must implement exactly one of two interfaces:
- IContentTypesFilter interface to filter content types
- IReusableFieldSchemasFilter interface to filter reusable field schemas
Exceptions
- ArgumentNullException
Thrown when
contentTypeFilter
isnull
.
Properties
AllowContentItemCreation
Allow content item creation.
public bool AllowContentItemCreation { get; set; }
Property Value
- bool
AllowedContentItemTypeIdentifiers
Allowed content item type identifiers.
public IEnumerable<Guid> AllowedContentItemTypeIdentifiers { get; }
Property Value
- IEnumerable<Guid>
AllowedContentItemTypeIdentifiersFilter
A filter class to mark supported content types. It must implement IContentTypesFilter interface.
public Type AllowedContentItemTypeIdentifiersFilter { get; }
Property Value
- Type
Remarks
Cannot specify both AllowedReusableFieldSchemaIdentifiersFilter and AllowedContentItemTypeIdentifiersFilter.
AllowedReusableFieldSchemaIdentifiersFilter
A filter class to mark supported reusable field schemas. It must implement IReusableFieldSchemasFilter interface.
public Type AllowedReusableFieldSchemaIdentifiersFilter { get; }
Property Value
- Type
Remarks
Cannot specify both AllowedReusableFieldSchemaIdentifiersFilter and AllowedContentItemTypeIdentifiersFilter.
DefaultViewMode
Default view mode of the selector, see ContentItemSelectorViewMode.
public ContentItemSelectorViewMode DefaultViewMode { get; set; }
Property Value
MaximumItems
Maximum number of selected content items.
public int MaximumItems { get; set; }
Property Value
- int
MinimumItems
Minimum number of selected content items.
public int MinimumItems { get; set; }
Property Value
- int