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.
The template approach in this module doesn't give much control over the output. Quite a lot of sites use imagecache to control image sizing, and adding that option to this module was pretty easy. The attached patch lets affiliates choose a preset to use when exporting HTML.
Comment | File | Size | Author |
---|---|---|---|
#2 | patch.diff | 3.04 KB | Brian294 |
uc_affiliate2_imagecache.patch | 1.92 KB | steve.m |
Comments
Comment #1
nohup CreditAttribution: nohup commentedPlease generate the patch using git or diff -Nru
Comment #2
Brian294 CreditAttribution: Brian294 commentedHere is a git patch. I made one minor change to the functionality to suite my tastes. I didn't like the fact that the image cache preset could be selected by the user. Our image cache presets can change from time to time and it's not fair to the affiliate to have image sizes change without notice. So, I put the configuration for the image cache under the admin settings to ensure our products are displayed consistently among all affiliates.
Peace,
Brian