Table of Contents

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
object
Attribute
ContentItemSelectorComponentAttribute
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 string

Content type name.

Exceptions

ArgumentNullException

Thrown when contentTypeName is null.

ContentItemSelectorComponentAttribute(string[])

Initialize new instance of ContentItemSelectorComponentAttribute.

public ContentItemSelectorComponentAttribute(string[] contentTypeNames)

Parameters

contentTypeNames string[]

Content type names.

Exceptions

ArgumentNullException

Thrown when contentTypeNames is null.

ContentItemSelectorComponentAttribute(Type)

Initialize new instance of ContentItemSelectorComponentAttribute.

public ContentItemSelectorComponentAttribute(Type contentTypeFilter)

Parameters

contentTypeFilter Type

Filters allowed content types or reusable field schemas. Must implement exactly one of two interfaces:

Exceptions

ArgumentNullException

Thrown when contentTypeFilter is null.

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

AllowedReusableFieldSchemaIdentifiersFilter

A filter class to mark supported reusable field schemas. It must implement IReusableFieldSchemasFilter interface.

public Type AllowedReusableFieldSchemaIdentifiersFilter { get; }

Property Value

Type

Remarks

DefaultViewMode

Default view mode of the selector, see ContentItemSelectorViewMode.

public ContentItemSelectorViewMode DefaultViewMode { get; set; }

Property Value

ContentItemSelectorViewMode

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