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

default discord avatar
Payload-Bot11 months ago
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
    11 months ago

    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_cr11 months ago

    oh, thank you

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

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