Hi, do you know if there is a way to display a preview image on my collection list?
Actually in Media collection, the field "filename" does it, but I can't access it with another collection (like Post articles).
@<Clement/> In post articles, you're just getting the ID back?
I think I got all the data, but since defaultColumn can accept only string, I can't access the filename
it wont works
You may be able to make a custom row / cell component
https://payloadcms.com/docs/admin/components#cell-component
oh ok I 'll check right after, thx you
How to access document within cells in list view?
In order to display image via custom component.
Do you mean to show image related thumbnail like this?
Yes. I'm looking to display the image thumbnail, how did you do it?!
did you get this working?
No. I didn't bother to get it working because I changed the implementation but if I remember well, while working on it, I found we might need to make a request to the server for every row/cell in the table where the image component is displayed to get the file object/URL as it's not populated in the current request. That was my assumption and I didn't like it, there should be a way to get the file URL in the current page request.
Star
Discord
online
Get dedicated engineering support directly from the Payload team.