I have a site I am looking to convert to drupal. Right now, it is a home-grown templating system based on class.rFastTemplate.php which I wrote some time back. It works well, but is somewhat limited for reasons that aren't relevant here....

Many of my images, e.g., http://www.astrofoto.org/gallery/constellations/view.html/cap, have rollovers which are the exact same image with some labelling.

What I would love to be able to do is to submit both images at the same time so that the image module can geneate the mouseover code correctly and so that different size versions stay correlated.

Comments

kuahyeow’s picture

Title: Image rollover support » +1: Image rollover support

However, maybe the AJAX module can do that for you?

rbroberts’s picture

I suppose I could use ajax, but the question is do I need to put in that amount of overhead to get this effect? And if I do, does it buy me some other things? More importantly, is a simple image rollover simple to do? On my non-drupal site, they're easy and they're fast (especially compared to lightbox2 which I was trying to use).

Bèr Kessels’s picture

Title: +1: Image rollover support » Image rollover support
Status: Active » Closed (won't fix)

This is done in the theme, in Drupal.
If you miss any theme functions or theme features, please open a detail feature request on a specific theme function.

It certainly is not an image.module feature.

rbroberts’s picture

Could you explain why it is a theme function? The theme doesn't upload the image and the theme doesn't upload the image and the theme doesn't provide the functions to convert the image metadata into HTML for the page, so why is the mouseover a theme function rather than part of the image module? I'm a newbie with Drupal, so I'm not clear on the distinctions as to what belongs where.....

Bèr Kessels’s picture

When looking in more detail at the example you provide, I see that in fact you ask for two features:
* being able to upload two images in one node.
* being able to overlay these images in HTML

#1 is not an option. You should use flexinode instead.
#2 is done using themes. Please refer to the theming manual for how to theme posts. In Drupal, anything that affects the outputted HTML, ca n be seen as theming.

rbroberts’s picture

Thanks for the update---I think I've confused image.module with the image module. I'll take it up there and with img_assist which is probably the more appropriate place.