Hello
user E
The problem you’re seeing, is because you try to define the structure within a document.
*These are separate in Sanity*: one is the
schemas
, where you define your
documents
and
objects
, one is your structure in the
desk
, which is done with the
Structure-Builder API These 2 guides could help you setup a
desk structure
you want to get working:•
https://www.sanity.io/docs/structure-builder-introduction •
https://www.sanity.io/guides/getting-started-with-structure-builder In addition: *think of nesting documents as referencing each other*: so setting up
references should be your way to go in your schemas!
I am unsure, which relations your categories, tags and other docs will have, but maybe set those up first with the help of the explanations from above.
After setting up your custom desk structure, you can then use
initialValueTemplates in the desk structure to pre-define, which references the newly created tags/categories will have.
But first: get accustomed to
references
(and
arrays
of references) and decide which logic they will follow and then take the next step of setting up a custom
desk structure
. Then adding
initalValueTemplates
and voila
😉