Internal/External Next.js Link
Internal/External link based on the conditional field example with Next.js component starters
Go to Internal/External Next.js LinkInternal/External link based on the conditional field example with Next.js component starters
Go to Internal/External Next.js LinkSimplify finding the right document to select when you have multiple types
Go to Filtering results for reference selectors in arraysSanity preview component cannot access the parent/document if its inside an array or object. Using Custom Preview component, we can solve the issue.
Go to Sanity Custom Preview Component to get Parent DocumentRecent studio styling has borders around icons in the desk structure. Here's a snippet to remove those.
Go to Remove studio desk icon bordersOne query to fetch the draft it it exists, and fall back to the published version of a document.
Go to Fetch the draft or published version of a documentScript to batch remove a field from all documents that match a GROQ query
Go to Batch remove a fieldSanity provides various custom functions inside the schema. But getting a reference field value is difficult. Here's the how I do it using fetch.
Go to Get Sanity Reference Field Values inside Custom Schema FunctionsThis recipe is a UX affordance for Sanity Studio, which makes it easier for editors to manage heavily cross-referenced documents. It provides a list of backlinks to referring documents.
Go to List Referring Documents (Backlinks) in SanityHow to automatically generate linked headings with a custom serializer
Go to Anchored Headings for Portable TextList all schemas in development
Go to Dev ModeQuickly and easily validate your slug without having to work out the regex syntax
Go to Easy peasy URL SlugMigration script to convert plain text to block content across your content lake
Go to Migrate plain text field to Portable TextA simple states dropdown list for your Studio
Go to United States Dropdown ListSuggest relevant content based on category tags.
Go to Related ContentSimple content type for a question and answer pattern
Go to Frequently asked questionsA custom input component that lets the schema creator control max, min, and step values on a number input.
Go to Controlled Number Custom Input ComponentSchemas for adding richer quotes within Portable Text
Go to Rich quotations in Portable TextJS/Node example of using the /mutate API
Go to Mutate, set or change values deep within documents