Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

How can I hide collections in admin without access restrictions?

default discord avatar
mosattler2 years ago
7

I dont want to restrict collection access, i just want to keep the admin interface clean for less technical users

  • default discord avatar
    sometimesdante2 years ago

    I haven't tried it, but I think you can group the elements you want hidden, and then hide it using // hidden: true


    https://payloadcms.com/docs/fields/group#config
  • default discord avatar
    mosattler2 years ago

    but those are groups for fields - i want to hide the collection alltogether!

  • default discord avatar
    christopher.nowlan2 years ago

    I don't think it's currently possible. But I'm pretty sure it's in the roadmap

  • discord user avatar
    denolfe
    2 years ago

    I've seen this request come up quite a bit. I'm going to create a feature request 👍



    Currently, not possible other than a hack to disable globally w/ css



    Feature request created.

    https://github.com/payloadcms/payload/discussions/2357

    @814899246540914698

    Feel free to add some detail in a comment here 👍

  • default discord avatar
    paulpopus2 years ago

    I was just looking for this today!

  • default discord avatar
    notchr2 years ago

    For those interested in hiding with CSS (not a GREAT solution)...



    All of the nav-links follow the pattern



    id="nav-{collectionSlug}"
  • default discord avatar
    tinouti2 years ago

    I was about to come here to suggest a CSS interim solution, it's pretty easy. To hide the "posts" collection for example:


    .dashboard__card-list li:has(#card-posts), #nav-posts { display: none; }
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.