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 use Adaptive image along with the Insert Module to provide a way for content editors to include responsive images inline.
I am working on a patch that should allow that to work.
Comment | File | Size | Author |
---|---|---|---|
#1 | [adaptive_image]-[support-insert]-[1475720].patch | 1.02 KB | atorockio |
Comments
Comment #1
atorockio CreditAttribution: atorockio commentedHere is my patch fo so far.
I used a preprocess function to change template variables to make them work with Adaptive Image and added a template suggestion to use a different template for adaptive images inserted with the insert module.
There is modified template file that I took from Insert. Currently, it will not be used and there must be a tpl.php in the the active theme for this to work. I just printed the $typof variable which I created in my preprocess function. I have been searching for a way to override Insert Module's tpl.php with this one in the Adaptive Image Module's folder (only for adaptive images) but have not found it. Any suggestions for that?
I am also hoping for feedback on my approach to solving this problem.
Comment #2
sanduhrsComment #3
mengi CreditAttribution: mengi commentedApplied the patch but nothing happened. Adaptive image style is still not applied. Using WYSIWYG module with ckeditor 3.6.6.1
Comment #4
chefnelone CreditAttribution: chefnelone commentedI'm also interested to use adaptive images with the insert module.
Comment #5
AlexJ CreditAttribution: AlexJ commentedYes that would be very useful, subscribing to this issue