Repeatable Fields Block

A list of repeating Fields Blocks. Good for an object that can be reused multiple times on the same page (e.g. list of authors with avatar).

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 when listing.

Publish

Data Key is set as authors and this block has two fields name, title.

JSON data

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

{
    "authors": [
        {
            "name": "Tom",
            "title": "dev"
        },
        {
            "name": "Jerry",
            "title": "test"
        }
    ]
}

GraphQL API

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

{
    "authors": [
        {
            "name": "Tom",
            "title": "dev"
        },
        {
            "name": "Jerry",
            "title": "test"
        }
    ]
}
Last Updated: