Object Field Type
Additional attributes, defaults, and usage example for object fields.
Usage Example
Here is an example that shows a featuredSection
field, where the object inside has heading
and backgroundImage
fields.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
This will render a preview of the embedded object, with support for adding, editing, and removing.
Clicking on the preview will drill down in to the editor for that embedded object.
Required Properties
Object fields require that you specify one or more field definitions for the object, using the fields
property.
Similarities to Other Objects
Object fields are similar to reference
and model
fields, with key differences for each scenario.
Reference vs Object
reference
fields refer to a page
model (rather than an object
model). They don't embed the result, but store a reference to that result. (As a string for Git CMS, and a built-in reference for API CMS.)
Model vs Object
model
fields are stored in the same way as object
fields, but they use field definitions described in other models. They also support allowing a choice between multiple types.