How to add custom columns with sorting and reordering to Sanity document list view?

4 replies
Last updated: Aug 2, 2022
πŸ‘‹ . How can the sanity content listing have more columns ? for stuff like
id
,
category
,
date-published
,
status
, etc . Also need feature to sort them , possibly drag the columns and
remove as editors see fit. Just the image and title does not help much
in content management for us at the moment . Thanks !! . Something like this
AI Update

You can definitely add more columns to your Sanity Studio document lists! The Structure Builder API gives you the foundation for customizing document views, but for a full table view with customizable columns, sorting, and bulk actions, you'll want to use a dedicated plugin.

The Sanity Bulk Actions Table plugin is exactly what you're looking for. It's a powerful table view plugin that provides:

  • Customizable columns - Add fields like ID, category, date published, status, and any other fields from your schema
  • Column management - Drag to reorder columns and show/hide columns as needed
  • Sorting capabilities - Sort by different columns
  • Bulk actions - Perform actions on multiple documents at once
  • Better content management - Much more useful than just image and title for managing large amounts of content

To install it, run:

npm i sanity-plugin-bulk-actions-table

The plugin was forked from the earlier "super-pane" plugin by @ricokahler and is maintained by ContentWrap. You can find the full documentation on GitHub and the NPM package page.

This should give you the spreadsheet-like view you need for more efficient content management. The plugin integrates with your existing schema, so you can expose whatever fields your editors need to see and work with at a glance.

Show original thread
4 replies
The example is from strapi, but most content management apps have it
you can control the amount of information previewed for each doc within their doc schema , or in any other parts of the studio via custom preview components, one example would be this guide here .
You'll also want to look into this plugin.
Oh yes, thats cool. πŸ‘

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?