Fieldtypes

Fieldtypes give you the ability to structure your content through the use of tailored interfaces designed for different types of data. They are the Control Panel connection to the Flat Files that make Statamic what it is. Every fieldtype is ultimately writing YAML in a pre-determined format for you.

Default Settings

Most fieldtypes share a common set of default settings, like validation, display text, instructions, and so on. You’ll see this list referenced throughout the docs.

display

string

The label shown above the field

instructions

string

Help text shown underneath the display label. Markdown supported.

localizable

boolean

Enable localization (the ability to translate this field)

width

int

The fields's width layout, in percentages (e.g. 100, 50)

validate

string

A pipe delimited string of validation rules

Last Updated September 09, 2016