Table of Contents

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
object
Attribute
ContentTypeFieldAttribute
Derived

Properties

Description

Optional description.

public string? Description { get; init; }

Property Value

string

InputTypeWIP

public string? InputTypeWIP { get; init; }

Property Value

string

IsTitle

If the attribute is for the title.

public bool IsTitle { get; init; }

Property Value

bool

Name

Attribute name. Usually not set, as it's the name of the property

public string? Name { get; init; }

Property Value

string

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; }

Property Value

ValueTypes