How to add a title to deskStructure in Sanity.io using preview.

2 replies
Last updated: Jul 28, 2023
I forgot how to change this… anyone that can help refresh my memory??
AI Update

I'd love to help refresh your memory, but I need a bit more context about what you're trying to change! Your question is pretty open-ended, so I'm not sure which specific aspect of Sanity you're referring to.

Here are some common things people ask about changing in Sanity:

Studio Configuration:

  • Studio title, logo, or theme
  • Project ID or dataset name
  • Studio layout or navigation structure

Schema Changes:

  • Field types or validation rules
  • Document types or field names
  • Preview configurations

Content Operations:

  • Published content or draft documents
  • Document permissions or access control
  • References between documents

Deployment & Settings:

  • API version or CDN configuration
  • Switching between datasets (production/staging)
  • Environment variables or CORS origins

Integrations:

  • Webhook configurations
  • API tokens or authentication
  • Third-party service connections

Could you provide a bit more detail about what you're trying to change? For example:

  • "How do I change my studio's title?"
  • "How do I change a field type in my schema?"
  • "How do I change which dataset I'm viewing?"

Once you let me know what specific thing you're trying to modify, I can give you the exact steps or point you to the right documentation! Feel free to describe it in your own words - even a rough description helps.

Something like this using preview should work I think:
  preview: {
    prepare: () => {
      return {
        title: "Your title here",
      };
    },
  },
Hey thanks
user F
I solved adding a title to my deskStructure
.title("Payment Method")

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?