it is possible to hide some collections, for examp...

default discord avatar
Payload-Bot
last month
2

it is possible to hide some collections, for example here, media



Original message from @maverick_cr - Moved from https://discord.com/channels/967097582721572934/967097582721572937/1140801124010573834 (in #general)
  • discord user avatar
    tylandavis
    Payload Team
    last month

    hey @maverick_cr, you can hide collections using the

    admin.hidden

    property on your collection config:


    export const Posts: CollectionConfig = {
      slug: 'posts',
      admin: {
        hidden: true,
      },
      fields: [
        ...
      ],
    };


    Set to

    true

    or a function, called with the current user, returning

    true

    to exclude this collection from navigation and admin routing.

  • default discord avatar
    maverick_cr
    last month

    oh, thank you

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.