Fields

    The structure of the array for describing the field

    KeyValue
    captionThe name of the field that the manager sees
    typeType of field, see below
    theme The editor's topic for the `richtext` field, the available values can be viewed in the Evolution CMS configuration, on the "Interface" tab
    options Additional options for the `richtext` field, values can be viewed here
    fields Nested fields, for type `group`
    height The height of the field, with units (for example `150px`). Available for field type `textarea`. For `richtext` field type this option must be specified in the key `options`
    elements Possible values for the selection field. Available for the fields `dropdown`, `radio`, `checkbox`, `imageradio` and `imagecheckbox`. Can be represented as an array of pairs `key => value`, or as a string in an cms format (`@SELECT` and others).
    layout Layout for the fields `radio`, `checkbox`, `group`, `imageradio` and `imagecheckbox`. Possible values are `vertical` (default) and `horizontal`. Also, for `group` you can use `gallery`.
    default Default value. For the field type `checkbox` can be an array of values. Can be in a cms format.

    Field types

    ValueDescription
    textText single line field
    imageText field with thumbnail and button for image selection
    richtextText editor TinyMCE 4
    textareaMultiline text field
    dateText field with dropdown calendar
    dropdownDropdown list
    checkboxCheckboxes, allows to multiselect
    radioRadio buttons
    imagecheckboxAs checkbox, but with images. In elements array should be images as values.
    imageradioAs radio, but with images. In elements array should be images as values.
    group Fields group, it is necessary to specify nested fields in the key `fields`