Introducing G2.ai, the future of software buying.Try now

Would it be possible to add to ability to create "Singles" and "Global variables"?

singles, effectively documents that only have one instance. This would be a great addition!
1 comment
Looks like you’re not logged in.
Users need to be logged in to answer questions
Log In
Knut M.
KM
Head of Developer Relations at Sanity.io
0
Hi! This is actually possible today using the Structure Builder API. You can follow this tutorial to set it up: https://www.sanity.io/docs/create-a-link-to-a-single-edit-page-in-your-main-document-type-list The reason we have gone with this approach is that in many cases you want more instances of your “singleton documents” once a project matures and grows. For example, you have a “settings document” for a website, but then you want to add a second website property to your Sanity project. Then you can opt out of the singleton configuration and support multiple settings documents with the same fields.
Looks like you’re not logged in.
Users need to be logged in to write comments
Log In
Reply