Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.x-dev
Component:
Views Integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2009 at 11:18 UTC
Updated:
14 Nov 2010 at 13:15 UTC
Comments
Comment #1
merlinofchaos commentedNot sure. Checking with CCK folks -- I can't remember if there's a way to control which field(s) are extracted by delta or not.
Comment #2
markus_petrux commentedTry with latest dev snapshot. Multiple value fields expose the delta key to Views as field, filter, argument, ...
Comment #3
MadOverlord commentedThanks very much for the help. I managed to puzzle out how to do it once given the important clue.
Some notes for the next person trying to do this after adding a delta argument.
1) You must ensure that the Content: Image field has Group Multiple Values unchecked, otherwise you will get all the Images, not just the one you want.
2) If you set the Content: Image delta argument to allow multiple values, you can use arguments like 1+2+3, but you need to make sure that Items to Display is set to unlimited. Also, 1+2+3 and 3+2+1 both appear to display in order 1+2+3.
Comment #5
drahman commentedYou say "It's easy to build a view that extracts the first image associated with a node."
I have built a block view showing thumbnails of Ubercart products. I only want the first image (thumbnail) associated with the product node to show in the view. I am hoping that this is something I can do in the view settings. Maybe in Filters?
I am not sure if you can shed any light on this or if it is an Ubercart issue. I have searched all through the Ubercart forums with no luck. I am grasping at straws now.
Any help you can give would be greatly appreciated.
Thank you very much in advance!
Comment #6
MadOverlord commentedIIRC, something like a content: image field, with group multiple values checked, but items to display set to 1, will get you what you want. Or see my reply #3, and set the delta argument to 1