Skip to content

Kirby 5.1.3

Headline

Creates a headline to group fields

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

Field properties

Name Type Default Description
help mixed null Optional help text below the field
label mixed null The field label can be set as string or associative array with translations
when mixed null Conditions when the field will be shown (since 3.1.0)
width string '1/1' The width of the field in the field grid, e.g. 1/1, 1/2, 1/3, 1/4, 2/3, 3/4