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.

defaultColumns not working

default discord avatar
ragingpotato.10 months ago
12

will do! thank you so much!

  • default discord avatar
    notchr11 months ago

    After reading through that, will you let me know if you're still stuck?



    It provides methods like setPreference



    https://payloadcms.com/docs/admin/preferences#managing-user-preferences

    Well there is an API for dealing with user preferences



    Hmm

  • default discord avatar
    ragingpotato.11 months ago

    yes. is there an config for that or does it save on default?

  • default discord avatar
    notchr11 months ago

    So not only can you not change the preferences, they don't persist when changed?



    Hmmm

  • default discord avatar
    ragingpotato.11 months ago

    not really a one time. maybe when a user sets its preference on different order



    because the problem really for me is when a user logs out and logs back in, the columns are back to its default setup

  • default discord avatar
    notchr11 months ago

    But it can happen with changes to collections, etc



    Ideally you wouldn't be in this kind of in-between state with preferences



    Because dropping the _preferences collection will surely do it



    As like a one time thing? Or in general

  • default discord avatar
    ragingpotato.11 months ago

    yes

  • default discord avatar
    notchr11 months ago
    @446817950071128065

    Do you mean dropping user preferences?

  • default discord avatar
    ragingpotato.12 months ago

    is there anyway to do this without deleting the user and recreating it?

  • default discord avatar
    eddiedevlast year

    got it thank you!

  • discord user avatar
    dribbens
    last year

    but otherwise, dropping that table is the way



    If you delete your user and recreate it, preferences will get reset.

  • discord user avatar
    tylandavis
    last year

    You may need to drop the

    _preferences

    collection in MongoDB. I don't know if there's an easy way to do this, I use Atlas so I just do it from the mongodb website.

  • default discord avatar
    eddiedevlast year

    Hi I've set my defaultColumns to the following for Media Collection List Page under admin: defaultColumns: ['title', 'customId', 'description', 'fileName'].


    However, it doesn't do anything.


    Any ideas?


    Ty.

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.