Desk structure in sanity studio v3 #3932
Answered
by
joaisa17
OtterArkar
asked this question in
Sanity Studio Support
-
How can i use deskStructure builder in sanity studio v3. I tried adding structure in deskTool options but not working. |
Beta Was this translation helpful? Give feedback.
Answered by
joaisa17
Dec 6, 2022
Replies: 1 comment 1 reply
-
The structure resolver is a callback function that takes the The following example is the base document type list: import { defineConfig } from 'sanity';
defineConfig({
name: 'sanity',
title: 'Sanity Example',
projectId: 'foo',
dataset: 'production',
plugins: [
deskTool({
structure: S => S.documentTypeListItems(),
name: 'desk',
title: 'Desk'
})
]
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
OtterArkar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The structure resolver is a callback function that takes the
StructureBuilder
as its argument.The following example is the base document type list: