This repository was archived by the owner on Jun 17, 2026. It is now read-only.
Remove "Media Tag" from Create New Document menu? #43
Answered
by
robinpyon
joaodotwork
asked this question in
Q&A
|
Hi! What a wonderful plugin, thank you so much for making this Open-source and awesome :) Quick q: I tend to edit my available types in the "Create New Document" menu and realize creating Media Tags is useful to me in the plugin window context but not outside of it. How would you suggest me to edit it out of that list? Thanks + much appreciated, |
Answered by
robinpyon
Jun 11, 2021
Replies: 1 comment 1 reply
|
Hey @joaodotwork – you can configure the new document menu using Sanity's structure builder. Link to documentation Simply add the following to the {
"parts": [
{
"name": "part:@sanity/base/new-document-structure",
"path": "./newDocumentStructure.js"
}
]
}And in import S from '@sanity/base/structure-builder'
export default [
// Bring in default values
...S.defaultInitialValueTemplateItems()
// Filter out document types of `media.tag`
.filter(template => {
if (template.spec.id === 'media.tag') {
return false
}
return true
})
]Hope that helps! |
1 reply
Answer selected by
joaodotwork
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hey @joaodotwork – you can configure the new document menu using Sanity's structure builder. Link to documentation
Simply add the following to the
partsarray in yoursanity.json:And in
./newDocumentStructure.jsHope that helps!