I'm not sure if this issue is spill-over from #2069435: FlexSlider alpha2 breaks FlexSlider Fields integration, but it seems as if the Flexslider field formatter in views will not display a flexslider for a muti-value image field (screenshot of field settings attached). I have an older site running flexslider 7.x-2.0-alpha1+6-dev and these same settings successfully output a flexslider-formatted field (live example: http://rec.arizona.edu/galleries/challenge-program).
All modules on my sandbox site are up-to-date (as of this posting) and the Flexslider library version is 2.2. Flexslider modules enabled: FlexSlider, FlexSlider Fields, FlexSlider Views Style. Export of sandbox view is also attached. I marked this issue as major because the functionality existed in the past, but is gone/broken now.
Comment | File | Size | Author |
---|---|---|---|
#19 | views_field_problem-flexslider-2231809-19.patch | 521 bytes | MiroslavBanov |
#10 | field-settings-german.png | 57.97 KB | tfranz |
test_gallery_archive.txt | 3.85 KB | Geijutsuka | |
flexslider-formatter.jpg | 168.34 KB | Geijutsuka |
Comments
Comment #1
ytsejam CreditAttribution: ytsejam commentedI wonder if the problem is similar to this one in the Gallery Formatter module.
Comment #2
ohthehugemanatee CreditAttribution: ohthehugemanatee commentedHave you confirmed that this problem is specifically with the field formatter in Views? IE does it work in other environments?
I'm struggling with something similar ATM, but I'm trying to be certain that it isn't just a misconfiguration somewhere.
Comment #3
Sile CreditAttribution: Sile commentedLove the Flexslider module - so many thanks for all the work on it.
I'm having the same issue with the display of multi-value image fields in Views (choosing Flexslider as the formatter) - the images appear one underneath each other rather than as a slideshow.
The Flexslider formatter on an individual content type under Manage Display fields seems to be working fine.
Comment #4
jpvosmeer CreditAttribution: jpvosmeer commentedI can confirm that multi-value image fields break the "flexslider" formatter in views. The div is empty nothing is returned.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAny updates here? Trying to use flexslider formatter option on an image field in views and no images are printed. When I switch back to the image formatter I get all the images I am expecting. But of course, I'm preferring to use flexslider as this is also happening in a responsive grid. Any thoughts?
Comment #6
cgdrupalkwk CreditAttribution: cgdrupalkwk commentedI have the same problem. I love this module and wish I could figure out why this doesn't work.
UPDATE: If you check the "Use field template" box under the Image field Style Settings the slider works as it should for me using a multivalued Image field. Under "Multiple Field Settings" I have the "Display all values in the same row" box checked as well.
Comment #7
Geijutsuka CreditAttribution: Geijutsuka commentedChecking the field template box in the view settings unfortunately didn't seem to make a difference in my setup. I also tried customizing the teaser view mode with Display Suite (only showing the multiple image field) and displaying that in a view, but still no dice.
Comment #8
guardian87 CreditAttribution: guardian87 commentedI can confirm that #6 fixes the issue for me as well!
Thanks for sharing!
Comment #9
Eduardo-16 CreditAttribution: Eduardo-16 commentedI have the same problem, somebody can show me where is the "Use field template" with a photo because i can find it, please
Comment #10
tfranz CreditAttribution: tfranz commented#6 fixed it for me, too.
@Eduard24: Sorry, i can only provide a photo in german language (attached file "field-settings-german.png") …
Please try the following:
- Click on the Image-Field you want to change.
– On the settings-page there should be a collapsible frameset called "Style settings" (german: "Design Einstellungen")
– Make sure that "Use field template" (german: "Feldvorlage verwenden") is active.
Comment #11
Eduardo-16 CreditAttribution: Eduardo-16 commentedthank you so much tfranz. i was searching on "multiple field settings".
Comment #12
JKingsnorth CreditAttribution: JKingsnorth commentedThe suggestion in #6 fixed this for me as well.
Is there some way we can enforce this or enable it by default for flexslider?
Comment #13
Geijutsuka CreditAttribution: Geijutsuka commentedRevisited this topic and tried #6 again and it worked. :)
Comment #14
Marvine CreditAttribution: Marvine commented+1 for #6
Comment #15
goodboyThanks, #6 worked
Comment #16
JKingsnorth CreditAttribution: JKingsnorth commentedSetting this to 'needs work' so that we can put together a patch that will enable this (see #6) by default on Flexslider displays and force it on. Unless anyone can see why that might not work?
Comment #17
rsacher1 CreditAttribution: rsacher1 commentedAs a drupal novice... I cannot find the "Use field template" described by #10
I searched but failed to find it...
can someone give me a guide where to start -> from the Admin-Menu down to the required setting...
...or maybe there is something wrong with my installation ...?
..thought I have all dependent modules installed...
Comment #18
JKingsnorth CreditAttribution: JKingsnorth commentedrsacher1: To get there:
Structure > Views > 'Edit' the View that is displaying your slider
Under 'Fields' click on the image field that contains your image (Content: Image or similar)
In the popup expand 'Style settings'
You will see 'Use field template' there
Comment #19
MiroslavBanov CreditAttribution: MiroslavBanov commented#1 is exactly right.
flexslider_fields_field_formatter_view() returns $elements in unexpected format, causing issues - for example theme_field is not being called for the flexslider field, and the views problem as well.
Here is the patch that should fix both problems
Comment #20
shortspoken CreditAttribution: shortspoken commentedThanks a lot @MiroslavBanov! It just works now. :)
Comment #21
himanshupathak3 CreditAttribution: himanshupathak3 as a volunteer and at Srijan | A Material+ Company commentedJKingsnorth
Thanks for your solution.
#18 worked for me
Comment #22
minorOffense CreditAttribution: minorOffense at Coldfront Labs Inc. commentedComment #25
u.tyagi CreditAttribution: u.tyagi commented#6 worked. Thanks
Comment #26
Thomas Kaisuka CreditAttribution: Thomas Kaisuka as a volunteer commented#6 worked for me perfectly in drupal 8 Yay!