limit [ImageField - data] in Views to show only the first image's data when paired with the first image

jessehs - November 4, 2009 - 08:52
Project:ImageField
Version:6.x-3.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I've created a CCK content type "News Item" with an ImageField "image_gallery" allowing unlimited images. I've set up a Views page to display various fields including "image_gallery". For this page, I've limited the image_gallery field to show only ONE image (using the "Group multiple values" checkbox, showing 1 value to 1, starting at 0). I also pull in the "(field_image_gallery) - data" field to display the description for the first image... except there's no option on the data field to limit it to ONLY SHOW THE FIRST IMAGE'S DATA!

So when I look at the page that Views generates, I have a bunch of identical rows of the same news item, each with the first picture of the gallery just like I want, with the only difference between each of these news items being the caption their image.

A new identical row is generated for each additional gallery image's caption. No duplicate news items are generated if I leave out the "(field_image_gallery) - data" field in the View...

Am I missing something here? For the "News Items" page, I want to list the news item and include a thumbnail of the FIRST picture in the gallery, along with its description. I'd like to do this without re-theming the views row output if possible.

#1

thadwheeler - November 12, 2009 - 19:01

jessehs,.
have you come up with a solution to this? I am working on exactly the same thing?

#2

thadwheeler - November 12, 2009 - 19:43

jessehs,
I found a working solution to limiting the imagefield -data displayed in a view -I was able add a filter on imagefield delta - set the value equal to 0 ( first image ) , this seems to limit the image and the data - without having to set a limit and starting point on the imagefield selection.

 
 

Drupal is a registered trademark of Dries Buytaert.