Have installed Image Capture, run update.php, enabled the module, enabled required node types. Using FCKeditor advanced image options, I can set the image class to "caption".

The image does appear with a caption, but regardless of the value of the 'alt' attribute it is always the single word "undefined". Here's the image tag as inserted by FCKeditor:

<img width="150" height="200" align="right" src="/mcs/sites/default/files/image/IMG_0938.JPG" alt="Magpie at Ham Polo Stables." class="caption" />

This has the correct class but there is no wrapper. However, something somewhere must be throwing up the "undefined" message.

On the Page node where I entered the text and picture, inspection of the source code reveals no image_caption.js in the header, even though Image Caption is configured to work with Page.

This is potentially a really useful module, so I would very much like to get it working.

I am running Drupal on my local machine, using xampp. I don't know what version of JQuery I have. In fact I know nothing at all about JQuery - perhaps this is where the problem lies!

Many thanks for your efforts.

Comments

davidwhthomas’s picture

That'll be because the caption is made from the title attribute, not the alt attribute. e.g:

<img width="150" height="200" align="right" src="/mcs/sites/default/files/image/IMG_0938.JPG" alt="Magpie at Ham Polo Stables."  title="Magpie at Ham Polo Stables." class="caption" />

DT

rrabbit’s picture

Thanks for your prompt reply. Stupid of me not to have RTFM.

The good news is that FCKeditor will insert the title attribute, giving the image tag

<img width="150" hspace="5" height="200" align="right" alt="Magpie at Ham Polo Stables." title="Magpie at Ham Polo Stables." src="/mcs/sites/default/files/image/IMG_0938.JPG" />

The bad news is that I still have no caption.

Any further help would be much appreciated.

[EDIT 27/03/08]

Doh! I'm not having a good week. Of course, the tag above is faulty - no class="caption". My only excuse is that FCKeditor makes all this quite tedious to do. However, I now have the tag

<img width="150" height="200" align="right" class="caption" src="/mcs/sites/default/files/image/IMG_0938.JPG" title="Magpie at Ham Polo Stables." alt="Magpie at Ham Polo Stables." />

and a lovely caption! Thank you so much. I'm now going to investigate styling the caption as per your instructions and promise to be a bit more careful this time.

Keep up the good work.

davidwhthomas’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.