Template Block
A block like Fields Block, but it supports predefined template. Good for predefined page sections (e.g. sidebar, SEO info).
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
Template: The template for this template block.
Publish
Data Key is set as seo and the selected template has two fields title, description.
JSON data
The value of this field will be published as a object.
{
"seo": {
"title": "contentboot",
"description": "a headless CMS"
}
}
GraphQL API
The value of this field will be published as a object.
{
"seo": {
"title": "contentboot",
"description": "a headless CMS"
}
}
