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.
I would like to see this module integrate with drupal core's responsive images module. The drupal 7 version integrates with the picture module which is a back port of the responsive images module.
Comment | File | Size | Author |
---|---|---|---|
#4 | integrate-responsive-2665664.patch | 15.55 KB | amaria |
Comments
Comment #2
amaria CreditAttribution: amaria commentedTry this patch. In an effort not to create yet another module that has to be installed, this patch simply...
- adds one formatter trait for both normal and responsive images
- adds a responsive formatter that uses the above trait
- changes the normal formatter to use the above trait
- does not instantiate the responsive formatter if responsive image is not installed.
- removes some unused code that was leftover from Drupal 7 in flexslider fields module.
Let me know how it goes. Hopefully the patch works. I did it rather quickly.
EDIT: Be sure to rebuild the cache after installing.
Comment #3
amaria CreditAttribution: amaria commentedComment #4
amaria CreditAttribution: amaria commentedHere's a better patch that decouples the trait from the image formatters so it could potentially be used for other formatters.
Comment #5
amaria CreditAttribution: amaria commentedComment #7
amaria CreditAttribution: amaria commentedClosing this since it has been added to the dev branch.
Comment #8
amaria CreditAttribution: amaria commentedComment #9
bloomt CreditAttribution: bloomt commentedI updated to the latest dev release and noticed that there is a responsive image flexsider option of the manage display of a flexslider field. But from what I can tell there is still no way to tell flexslider to use responsive images in flexslider views or in a flexslider field within a view.
Thanks for all the hard work
Comment #10
amaria CreditAttribution: amaria commentedYou should see the Flexslider Responsive formatter for the image field in Views with the latest dev snapshot from yesterday. Are you not seeing it?
The only other way to use it in Views is to select Flexslider for the style, and Responsive image (instead of Image) for the image field formatter.
Comment #11
bloomt CreditAttribution: bloomt commentedI got it working, the issue that I was having was I was rewriting the images. Apparently responsive image style does not pass into rewrite, everything works properly when I do not use rewrite.
Comment #12
DD 85 CreditAttribution: DD 85 commenteddel