Issue with menu actions not showing up on documentTypeList in code snippet.

2 replies
Last updated: Jun 21, 2023
Have another quick one - menu actions not showing up on
documentTypeList
(code in thread)
Jun 20, 2023, 8:32 PM
πŸ‘‹ I'm not seeing the create new document action on a
documentTypeList
for some reason. Can't find any relevant info on docs aside from the commented line that I've tried here.

import {GoListUnordered} from 'react-icons/go'

export default (S) =>
  S.listItem().title('Pages').icon(GoListUnordered).child(
    S.documentTypeList('page')
      // .canHandleIntent((intent, {type}) => ['create', 'edit'].includes(intent) && type === 'page')
      .title('Pages')
      .filter(`_type == "page" && _id != "homepage"`)
  )
Jun 20, 2023, 8:33 PM
Got it. When defined as an
object
this does not show.
Jun 21, 2023, 1:48 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the 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?