1 reply [Last post]
decaye's picture
Offline
Joined: 10/29/2008
Juice: 15
Was this information Helpful?

I will see if I can explain this properly. I'm stumped.

I have several views using imagecache which display products images

For example, I have uc_marketplace...and product images are displayed in profiles)

I have a collage on the frontpage...created with Views bonus pack grid view...and of course the catalog itself.

Now, the catalog and all my views are using the first uploaded image, naturally.

The first in the array is
$imagePath = $node->field_image_cache['0']['filepath'];

In the Views dialogue you can set "display first value only." or "display last value only"

but I am going to have more than just first and last as far as images...

Do you think there is anyway, that in a view I define...that I could somehow actually capture the second item of the array from field_image_cache...

In essence, i don't want '$imagePath = $node->field_image_cache['0']['filepath']; ', i need '$imagePath = $node->field_image_cache['1'] for a couple of views.

Did that make sense?

I'll explain a little more. The first images are pictures of models wearing user-designed clothes...the second image is simply the design. I need to capture the second image for a grid display. See the attached image.

PreviewAttachmentSize
Untitled-1 copy.jpgUntitled-1 copy.jpg41.02 KB
torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Imagecache Question or Workaround

Yes, if you're using a View to display your catalogue, you can theme the View to use whichever image you specify.

--
Help directly fund development: Donate via PayPal!