-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object Summary #2252
Object Summary #2252
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small qol changes, like the idea :)
next: content/docs/reference/types/rich-text.mdx | ||
previous: content/docs/reference/types/reference.mdx | ||
--- | ||
|
||
## `object` Type | ||
|
||
The `object` field is a dynamic field type creates a nested page in the CMS with the data it contains. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a dynamic field type that creates a nested page in the CMS with the data it contains"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
next: content/docs/reference/types/rich-text.mdx | ||
previous: content/docs/reference/types/reference.mdx | ||
--- | ||
|
||
## `object` Type | ||
|
||
The `object` field is a dynamic field type creates a nested page in the CMS with the data it contains. | ||
|
||
This can be used to create repeated data structures, group related data in the CMS and/or give users the option to choose between a set of templates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are repeated data structures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like a list of some object (ex. I want a bunch of author objects, with name, books etc.) – author being the data structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
||
![](https://res.cloudinary.com/forestry-demo/image/upload/v1727331115/tina-io/docs/Sep-26-2024_16-03-00_f3ogev.gif) | ||
|
||
* With `list` set to `true`, and using `templates` as opposed to `fields` the user can select between associated templates – this appears as above, but pressing the `+` gives you the option to choose between templates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use templates and fields alongside one another?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah 80% sure it's only one or the other
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ apoc it is not possible
Ben's suggested that the object field type page should include details of the usage and a practical example.
I've quickly put together a description of the usage and created a PBI for adding an example, #2253.
--- Isaac