How to implement custom Cells to add thumbnails to relationship fields as well as List views?

default discord avatar
chaitealattayylast year
4

I have read the docs on custom Cells:

https://payloadcms.com/docs/admin/components#cell-component

However, I am not sure exactly how to implement them. I want to add thumbnails to both relationship fields for images (so user can see what they are selecting), as well as in the List view.



Is there an example I can reference that shows how to pull the custom Cell in and utilize it correctly?

  • default discord avatar
    chaitealattayylast year

    @John perfect, thank you!

  • default discord avatar
    jm.svlast year

    @Chai @John did you get this working for the relationship field dropdown? I figured out how to add the cell to my List view and Edit views, but not how to customize the items in the dropdown

  • default discord avatar
    borke50005 months ago

    @jmsv how do you add the custom cell to the list view?

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.