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.

Confusion on creating a new collection?

default discord avatar
openbayoulast year
4

Hello,


I'm making the switch from WordPress to Payload and need some help on collections. I created a new collection and it's in the default collections with users and media. But I want to create a new collection group that's separate.



What I'm trying to make is something like this:



Collections


- Users


- Media



Main


- Articles

  • default discord avatar
    zed0547last year

    You're lookin for the

    admin.group

    property in your collection config which will group that collection according to what yoy described:

    https://payloadcms.com/docs/admin/collections#admin-options
  • default discord avatar
    openbayoulast year

    oh that was easy! Last question, can they be sorted in a custom oder?

  • default discord avatar
    zed0547last year

    They're sorted in the order describe by your import order in payload.config

  • default discord avatar
    openbayoulast year

    Awesome! Thanks again!

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.