If the colorbox opens it does not show the existing alt as title on bottom of the colorbox. The colorbox has no title or empty title defined. Can we show the alt value as title, please? I cannot explain the users to insert alt and title for every image upload. It's already hard to get alt filled :-(((
Comments
Comment #1
frjo commentedI guess you are using the Insert module when you are having this problem?
When using the Colorbox formatter this should just work.
With the Insert module I'm reusing its functions and behaviour as far as possible. It has a neat javascript that makes it possible to use values from the image field alt and text fields without saving the node first, i.e. the values are not in the database.
If someone has a clean and nice way of combining the two features I would be happy to test it out.
Comment #2
volca commentedI also have this problem (not using insert module though).
The title appears when I enter it, but alt never shows up - even when no title exists. I’m adding images from IMCE through ckeditor through wysiwyg, but I’ve also entered html for title and alt manually to see what’s happening. I cannot enter images through Insert as the insert button doesn’t appear (another problem for another day).
So far i’ve tried
- changing the colorbox.theme.inc file from
to
or
2. Copying the "colorbox-insert-image.tpl.php" file to own theme and where it says
title="__title__"change it totitle="__alt__".And cleared caches every time. No change.
Is there anything else I can try?
(edit to clarify: changed original files, then tried changing files copied to theme folder and then copied relevant part of colorbox-insert-image.tpl.php to template.php. First two methods no changes. Last one threw a fatal error).
Comment #3
volca commentedNevermind. I have been able to get captions using alt using a different module.
Comment #4
frjo commentedComment #5
hass commentedThis is always reproducible.
Comment #6
neslee canil pinto