What's the best way to show the image of a Dexterity-based Plone content type in a listing view?
Say I have a folder with Dexterity-based content objects that provide an image field and I want to list the objects (as catalog brains) together with their image. It is possible to show the images in the listing by calling their absolute URL:
<img src="" tal:attributes="src string:${item/getURL}/@@images/image/thumb" />
Though, Plone will raise an error if the image does not exist and I don't see a good way to check if the image exists in a page template. We obviously do not want to wake up the objects for a listing, to look up the image.
Do I have to create an image metadata column in the catalog or is there a better solution I don't see?