Class ContentTypeFieldAttribute
- Namespace
- ToSic.Eav.Data.ContentTypes
- Assembly
- ToSic.Eav.Data.dll
Provide additional information about a field, for generating the content-type definition.
[WorkInProgressApi("v22")]
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class ContentTypeFieldAttribute : Attribute
- Inheritance
-
objectAttributeContentTypeFieldAttribute
- Derived
Properties
Description
Optional description.
public string? Description { get; init; }
Property Value
InputTypeWIP
public string? InputTypeWIP { get; init; }
Property Value
IsTitle
If the attribute is for the title.
public bool IsTitle { get; init; }
Property Value
Name
Attribute name. Usually not set, as it's the name of the property
public string? Name { get; init; }
Property Value
Type
The type of the value. Only set this if it must be different from the property type or if the property type has an unexpected type. Also use this for relationship (Entity) fields.
public ValueTypes Type { get; init; }