Showing only 1 image of the product in list view

Posts: 62
Joined: 09/12/2007

Hi,

I know that this question isnt about ubercart but i believe its related to it.

In my store, my products have multiple images and i have categorized the products with taxonomy, then, i create a list view in a block showing only the images(with link) of the products of certain category, but it shows all images of the products, i want to show only one image of each product, its the same idea that happens with the catalog, but i dont know how to do it using views.

regards.

Posts: 62
Joined: 09/12/2007

Anyone?

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

Me! Sticking out tongue

What you need to do is change the handler for the Image field to Do not group multiple items. This will show x number of instances of each product where x is the number of images that product has. To solve this you need to add another filter to show only the distinct nodes: Node: Distinct will do the trick.

Hope this helps. Laughing out loud

Posts: 62
Joined: 09/12/2007

Thanks Rich

My problem really was the node:distinct filter, i include it and works fine.

regards

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

No worries, well maybe some...

I have just realised that the view I have setup does not work in the way I was expecting it to. The Node: Distinct filter seems to make sure that only a single instance of the node is displayed in a list of nodes. Since I am showing only one node this becomes useless. It's not really important but it would be nice if I could figure out how to only show the first image from a node.

Posts: 15
Joined: 09/14/2007

i added this the other day - i think it explains the process clearly

http://www.ubercart.org/contrib/1205

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

Hi avolve, I have a grid view working fine; this is because I'm showing multiple nodes in a list. The problem is when I want to show just one node at a time but only want the primary image to show. I think the way views' Node: Distinct filter works is by ensuring that only the first instance of each node is show in the displayed list.