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

Hetta’s picture

Go have a look at image_filter - that one works a treat, provided you know the node number of your image.

joachim’s picture

Hetta’s picture

marked http://drupal.org/node/300681 as duplicate

greg.harvey’s picture

Could 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?

sun’s picture

Status: Active » Closed (duplicate)

Template 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.