Skip to content

Kirby 6.0.0

Headline

Creates a headline to group fields

Field options

Name Type Default Description
default mixed null Default value for the field, which will be used when a page/file/user is created
help arrayorstring null Optional help text below the field
label arrayorstring no default value The field label can be set as string or associative array with translations
translate bool true Should the field be translatable?
when array null Conditions when the field will be shown
width string '1/1' The width of the field in the field grid. Available widths: 1/1, 1/2, 1/3, 1/4, 2/3, 3/4

The headline field helps to group larger sets of fields. It creates a headline with additional white-space and a prepended index number.

Example

fields:
  pageSettings:
    label: Page Settings
    type: headline
  type:
    label: Page type
    type: text
  state:
    label: Draft
    type: toggle
  content:
    label: Content
    type: headline
  text:
    label: Text
    type: textarea