Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using a field collection with multiple images, field_slideshow only uses the first image. Here is a patch that lets us use multiple image fields while keeping the same behaviors for single images. The only limitation is that the caption will still be a single field in the field collection item.
Comment | File | Size | Author |
---|---|---|---|
#5 | field_slideshow_field_collection_multiple_images_5.patch | 2.07 KB | camdarley |
#1 | field_slideshow_field_collection_multiple_images.patch | 1.84 KB | jide |
field_slideshow_field_collection_multiple_images.patch | 1.75 KB | jide | |
Comments
Comment #1
jide CreditAttribution: jide commentedSorry, this is the good patch.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm using this patch (#1) right now in a D7.15 installation with field_collection 7.x-1.0-beta4 and field_slideshow 1.7 and it works!
Comment #3
bendev CreditAttribution: bendev commentedcould you explain how to use it ?
I have a field collection with multiple images FIELDS . (field image left and filed image right)
Is the intention of your patch to get two image fields of a field collection displayed side by side ?
In the content type I select the slideshow as the display mode. Then I need to select one of the image field I want to display but I would like to have two.
Is it the purpose if your patch or did I understand it wrong ?
thanks
Comment #4
camdarley CreditAttribution: camdarley commentedWorks perfectly!
However, as bendev (I think), the first reason why I tested this patch is that I would have preferred to have multiple images per slide.
I have a "field collection", which contains 4 image fields and I would like to slide from one element to the other and see my four images together on each slide.
This is another issue, as this one could be useful for many.
Thanks jide!
Comment #5
camdarley CreditAttribution: camdarley commentedI rerolled the path for the last dev version