Is it Possible to Have Image Assets As a List Item in the Desk Structure?
listItem()
.title('All images')
.child(documentTypeList('sanity.imageAsset'))listItem()
.title('Images')
.child(
documentTypeList('sanity.imageAsset').child(assetID =>
component()
.title('The image')
.component(props => <div>{JSON.stringify(assetID)}</div>)
)
)Was this answer helpful?
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.