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.

Reorder columns in collections

default discord avatar
CAPTKENlast year
4

How do you reorder the columns in a collections - for example in the Users Collection - hide ID - then arrange Full Name | Email | Address | Phone number in this order? Thanks

  • default discord avatar
    yhn5790last year
    admin: {
       defaultColumns: ["fullName", "email", "address", "phoneNumber"],
        },

    Use the default columns field inside collections admin object.



    If you are an existing user then the previous order would be stored in

    _preferences

    table so in such cases you would have unselect all the options in columns in the list view and add it back in the order you want.

  • discord user avatar
    jacobsfletch
    last year

    Columns are drag and drop, so you shouldn’t have to deselect and reselect, instead just drag them into your preferred order. Your changes will save to your user’s preferences as @yhn5790 mentioned.

    defaultColumns

    is used to initialize which columns are enabled by default and the order they appear for users without saved preferences.

  • default discord avatar
    CAPTKENlast year

    Many thanks for the pointers - works great

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.