Class SmartFolderSelectorComponentAttribute
- Namespace
- Kentico.Xperience.Admin.Base.FormAnnotations
- Assembly
- Kentico.Xperience.Admin.Base.Shared.dll
Indicates that the SmartFolderSelector form component will be used for editing of this property value in the administration interface.
public sealed class SmartFolderSelectorComponentAttribute : FormComponentAttribute
- Inheritance
-
objectAttributeSmartFolderSelectorComponentAttribute
- Inherited Members
- Extension Methods
Remarks
The underlying property must be of the type SmartFolderReference.
Constructors
SmartFolderSelectorComponentAttribute()
Initialize new instance of SmartFolderSelectorComponentAttribute.
public SmartFolderSelectorComponentAttribute()
SmartFolderSelectorComponentAttribute(Type)
Initialize new instance of SmartFolderSelectorComponentAttribute.
[Obsolete("Use parameterless constructor setting either AllowedContentTypeIdentifiersFilter or AllowedReusableFieldSchemaIdentifiersFilter property directly.")]
[ObsoleteSince(29, 5)]
public SmartFolderSelectorComponentAttribute(Type contentTypeFilter = null)
Parameters
contentTypeFilter
TypeFilters allowed content types or reusable field schemas. Cannot implement both interfaces at the same time:
- IContentTypesNameFilter interface to filter content types
- IReusableFieldSchemasFilter interface to filter reusable field schemas
Properties
AllowedContentTypeIdentifiers
Allowed content type identifiers.
public IEnumerable<Guid> AllowedContentTypeIdentifiers { get; }
Property Value
- IEnumerable<Guid>
AllowedContentTypeIdentifiersFilter
A filter class to mark supported content types. It must implement IContentTypesNameFilter interface.
public Type AllowedContentTypeIdentifiersFilter { get; set; }
Property Value
- Type
Remarks
Cannot specify both AllowedReusableFieldSchemaIdentifiersFilter and AllowedContentTypeIdentifiersFilter at the same time.
AllowedReusableFieldSchemaIdentifiersFilter
A filter class to mark supported reusable field schemas. It must implement IReusableFieldSchemasFilter interface.
public Type AllowedReusableFieldSchemaIdentifiersFilter { get; set; }
Property Value
- Type
Remarks
Cannot specify both AllowedReusableFieldSchemaIdentifiersFilter and AllowedContentTypeIdentifiersFilter at the same time.
AllowedSchemaIdentifiers
Allowed reusable field schema identifiers.
public IEnumerable<string> AllowedSchemaIdentifiers { get; }
Property Value
- IEnumerable<string>