prime
prime copied to clipboard
How do I query the second tab of a document?
e.g SEO ?
Tabs will not create nested groups of fields, but rather merge them into one stream of key value pairs.
Two things to note here:
- I haven't added any naming collision validation yet, so if you have two fields with the same name, the latter will be resolved. This is on my todo list.
- Naming convention, for my SEO tab, I usually name the fields something like:
- metaTitle
- metaDescription
- metaImage
This is the same way prismic works, if you have any better idea, I'm all ears. Maybe add an option for content type to group fields by tabs?