Easy method to display all documents with references to a certain document.

3 replies
Last updated: Nov 23, 2023
Hi everyone! Is there any easy method how I can display all the documents that have references to certain document? E.g. I have widgets as a separate document, and pages can have widgets attached as references. I want to see on the widget edit view the list of pages that use certain widget
Nov 23, 2023, 9:20 PM
The Documents Pane plugin uses this (reverse references) as its readme example. It will be a separate view, but will exist on the documents you specify.
Nov 23, 2023, 9:27 PM
user A
awesome, thank you! that's exactly what I was looking for!
Nov 23, 2023, 9:45 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?