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.
It would be great if image_attach used theming preprocessors in Drupal 6.x to provide template variables for attached images to node.tpl.php so they can be placed on the page more easily. Then advanced users could actually explicitly place their attached images in a template rather than just relying on weight.
I'm also trying to think of a way to allow users to sprinkle images within the body of a node using templating, rather than a module like Image Assist, but I don't think that's possible? Any ideas/suggestions gratefully received though. =)
Comments
Comment #1
Hetta CreditAttribution: Hetta commentedGo have a look at image_filter - that one works a treat, provided you know the node number of your image.
Comment #2
joachim CreditAttribution: joachim commentedSee http://drupal.org/node/271287 perhaps?
Comment #3
Hetta CreditAttribution: Hetta commentedmarked http://drupal.org/node/300681 as duplicate
Comment #4
greg.harveyCould be an extension of... but that doesn't currently cater for the work being done on multiple images in image_attach - it might need it's own set of template variables? Perhaps it's sensible to keep Image Attach tasks independent of core Image module tasks?
Comment #5
sunTemplate files are too heavy for this simple snippet. See #221608: better theming split: can't get to IMG tag or image URL in templates instead.