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.

Display Name Instead of ID: How To?

default discord avatar
lucaseven.9 months ago
3

JFL tbh



ok

@191776538205618177

this worked



ok i will just delete the table then



idk why its not working



export const Posts: CollectionConfig = {


slug: 'posts',


auth: false,


admin: {


useAsTitle: 'title'


},


fields: [


{


name: 'title',


type: 'text',


label: 'Title',


required: true,


},


],

  • default discord avatar
    markatomniux10 months ago

    You can wipe your entire preference table or just remove the preference specific to the collection you are working with. The preferences are purely for UX purposes

  • default discord avatar
    lucaseven.10 months ago

    i have this problem with all collections, should i delete all payload_preferences?? could this break my app?

  • default discord avatar
    markatomniux10 months ago

    using a combination of useAsTitle and defaultColumns will display the fields you are looking for on the table.



    Also note that Payload saves your preferences in a table called

    payload_preferences

    and you may need to delete your specific collection's preferences in this database table to see your change

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.