Normalize Portable Text blocks
Migration script to normalize Portable Text blocks across your whole dataset
Go to Normalize Portable Text blocksMigration script to normalize Portable Text blocks across your whole dataset
Go to Normalize Portable Text blocksThis migration scripts lets you migrate documents to a new type.
Go to Migration script for document typesUse data for the current logged in user as initial values in a new document
Go to Initial value template with current userDo something with a uploaded file and populate a field in the document based on that
Go to Populate fields with data from a file uploadShow different document lists based on a user's role
Go to Desk structure with custom rolesHow to group documents by their publishedAt year using the Structure Builder API
Go to Group documents by yearFind new connections in a dataset by filtering a second time on dereferenced data
Go to GROQ query to find all movie screenings with a specific actorScript to find and delete unused assets in a dataset
Go to Delete unused assetsAn example of overriding the default Studio Desk pane to add some business logic around menu items.
Go to Custom default desk paneScript to convert quotation marks in Portable Text blocks
Go to Convert quotation marks for Portable TextA small help function to convert Portable Text blocks to plain text
Go to Portable Text to Plain TextValidate a field only if a sibling boolean type is set to true.
Go to Conditional validation of stringSchemas for running a podcast backend on Sanity.io
Go to PodcastThis is a schema we've used to create accessbile bar charts, with human-readable text for each bar.
Go to Horizontal bar chartSchema for a text with a heading and a illustration with a caption.
Go to Heading, text, and illustrationA teeny-tiny 1-document-type schema
Go to Hello WorldGenerate a custom validator function for Portable Text fields using built-in routines
Go to Portable Text ValidatorA schema to bring greater transparency to food sourcing.
Go to Food Product Integrity