Reference Fields
Chapters
The Chapters field allows dynamic content creation using predefined templates, storing the content as an array of objects in the database.

Strife Studio screenshot of a Chapters field
Settings
In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.
You can find a comprehensive list of all basic settings in the 'Overview' section.
| Option | Description |
|---|---|
Restrict types | Sets the content templates available for use within the Chapters field |
Size | Optional setting for limiting the number of chapters allowed in the chapters editor |
Hint | A short description displayed inside the chapters editor to guide authors. |
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-chapters - Type:
chapters - Reference ID:
str-chapters
The settings above map into the editor.attributes object inside the JSON definition.
{
...
"editor": {
"name": "str-chapters",
"type": "chapters",
"propertyName": "...",
"attributes": {
"hint": "...",
"size": 3 //Any number
},
"options": {
"availableTypes": [...] //Array of normalized names of content templates
}
...
},
...
}Live preview
The compatible Strife Web Component for a Chapters field is any of the container components.
For more information on live preview and Strife Web Components, please refer to the Live preview documentation.
For a comprehensive front-end implementation example of the Chapters field, please consult the provided how-to guide.