prime icon indicating copy to clipboard operation
prime copied to clipboard

How do I query the second tab of a document?

Open jaredpalmer opened this issue 7 years ago • 1 comments

e.g SEO ?

jaredpalmer avatar Dec 21 '18 17:12 jaredpalmer

Tabs will not create nested groups of fields, but rather merge them into one stream of key value pairs.

Two things to note here:

  1. 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.
  2. 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?

birkir avatar Dec 21 '18 22:12 birkir