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...

CommentFileSizeAuthor
#2 1024540.patch2.36 KBrayasa

Comments

rayasa’s picture

Subscribe

rayasa’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.36 KB

Submitting a dev patch. Added a display options drop-down with first, last and all image display.

joachim’s picture

Status: Needs review » Needs work

Great 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?

rayasa’s picture

Status: Needs work » Closed (duplicate)

Yes, 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.