Fields Block

A set of fields combined into one fields block. Good for separating sections (e.g. header as Fields Block A, footer as Fields Block B).

Settings

Basic

  • Name: The human-friendly name of this field.
  • Data Key: The field name in published data. It must be in UpperCamelCase.
  • Description: The description of this field, should be a human-friendly text shown for content editor.
  • Hidden: Hide this field from the template. Used to create document with hidden default values. It is recommended that put this field to bottom.

Options

  • Display fields: Display inner fields block.

Publish

Data Key is set as header and this block has two fields title, description.

JSON data

The value of this field will be published as a object.

{
    "header": {
        "title": "contentboot",
        "description": "a headless CMS"
    }
}

GraphQL API

The value of this field will be published as a object.

{
    "header": {
        "title": "contentboot",
        "description": "a headless CMS"
    }
}
Last Updated: