I'm working on a classifieds site where users can create listings and add multiple photos. I have created a list view that shows the latest listings, but it shows all the photos for each listing (whereas I would like to show only one). I've tried with "distinct" and "group multiple values", but that does not have the desired effect. Should I create a separate image field called "main photo" and show only this one or are there better solutions? Thanks!

Comments

Rob L’s picture

If I understand your problem, you're almost there already.

Choose 'Do not group multiple values' for your photo field in your list view. Then set a 'node: distinct' filter. It should then only show one entry per node, with your first photo.

I found this at http://www.ubercart.org/forum/support/979/showing_only_1_image_product_l... after a full day of messing around trying to modify php code.