Is the list views documentation valid for Sanity Studio 3?
Yes, the documentation is still valid for Studio v3! The article you're looking at covers List Previews configuration, which works the same way in Studio v3 as it did in v2.
Based on your edit mentioning you "just needed to rename the file," it sounds like you may have been dealing with the Studio v3 project structure changes. In Studio v3, schema files are typically organized in a schemaTypes folder and imported into your configuration differently than in v2.
Here's what likely happened:
Studio v2 structure:
- Schema files could be in various locations
- Often used
schemas/schema.jsas an index file
Studio v3 structure:
- Schema files are typically in
src/schemaTypes/(orschemaTypes/) - Imported via
sanity.config.tsorsanity.config.js - Uses ES modules (
export defaultor named exports)
The preview configuration itself hasn't changed - you still use the same preview object with select and prepare functions as shown in the documentation. For example:
export default {
name: 'movie',
type: 'document',
fields: [...],
preview: {
select: {
title: 'title',
subtitle: 'releaseDate'
}
}
}If you're working with Studio v3, make sure you're using the modern project structure with proper ES module exports. The preview functionality documented in that article works identically in both versions!
Show original thread6 replies
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.