Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Is it Possible to Override the Logic That Determines the Heading For a Document?

6 replies
Last updated: Jun 21, 2021
Is it possible to override the logic that determines the heading for a document in Studio? Right now, Studio seems to expect there to be a user-editable
title
field. For one-off documents (such as a homepage), I don’t want to offer a user-editable title field.
Jun 21, 2021, 6:53 AM
I usually just hide the title fields in those documents. For singletons this might also be helpful: https://www.sanity.io/docs/create-a-link-to-a-single-edit-page-in-your-main-document-type-list
Jun 21, 2021, 7:07 AM
Great! I’m using the pattern from that article, but I couldn’t find anywhere in the docs how to hide a field.
Jun 21, 2021, 7:09 AM
…and now that you told me it was possible, I tried
hidden: true
🤦
Jun 21, 2021, 7:13 AM
thank you
user U
Jun 21, 2021, 7:14 AM
It's also listed in the properties for the field types: https://www.sanity.io/docs/string-type
Jun 21, 2021, 7:17 AM
not sure how i missed it.
Jun 21, 2021, 7:18 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?