Register now - Learn how Tecovas roped in success with Sanity and Shopify 🤠

Adding create button to templates page using documentTypeList instead of documentList.

4 replies
Last updated: Sep 28, 2023
Is there any way to add the create button to the templates page like how it looks in the All Modules page?
Sep 27, 2023, 9:44 PM
What does your Structure code for the Templates look like?
Sep 27, 2023, 9:59 PM
like this:
Sep 27, 2023, 10:16 PM
Instead of using a
documentList
, can you use
documentTypeList
? More on that here .
Sep 28, 2023, 12:54 AM
That worked thanks!
Sep 28, 2023, 1:52 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?