With the latest versions of Image and Views, the only currently supported 'Attached images' field for Views allows to show ALL the images attached to a node.
If there is more than one image attached to a node, it's only possible to show them all in the Views field. This isn't really useful when we're working on a list of products, for example, and we want to show only a thumbnail of the product in the correspondant row in the table.
That would be great if we could have just a 'First attached image' (or some other selection methods) field... this was obviously possible when Image attach supported only one image for each node...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1024540.patch | 2.36 KB | rayasa |
Comments
Comment #1
rayasa commentedSubscribe
Comment #2
rayasa commentedSubmitting a dev patch. Added a display options drop-down with first, last and all image display.
Comment #3
joachim commentedGreat stuff!
Though I'd rather this presented the same UI options as CCK multiple valued fields -- offset and count.
Also, I'm sure there's an issue open on this already -- could you perhaps search for it?
Comment #4
rayasa commentedYes, I agree. That makes more sense. I did find some time this weekend to work on the suggested UI. You can review the patch I submitted in the issue #981078: Image Attach: Limit number of multiple attached images in Views
I suppose it'd be fine now if I make this a duplicate.