Image Caption & More

Component ID

2319551

Component name

Image Caption & More

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

What it does

Wraps all images in content with a

tag, ALT attribute is used to
set he caption text. If the ALT attribute is emmpty then the TITLE attribute
is used as a copy to ALT attribute and caption. If both attributes are empty
use a template string for caption with a sequential numbering.

Where it does it

It does all its work on the server. Wrapping occurs prior Drupal renders the node content. Original content is replaced with the new content only before rendering, thus the new content is NOT saved anywhere.

Cache?

Ok, maybe it's saved in Drupals cached files but the modules code does not issue any saving.

Why server side?

Users who know (barerly) how to use a WYSIWYG editor are not so good at remembering class names and BB-codes and putting [ in content with a "lot of code". They think "It should be automagic!".

Tested with:

Works with CKEditor, Panels, Panels Everywhere. In CKEditor you just enter
the caption string in the text field "Alternative Text". Oh - it ought to work with vanilla Drupal...

Reviews

Pending review(s)

GIT

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/MissterX/2319551.git
If you do not have git installed, see attached file.
Please note that GIT contains the latest version, attached file is initial dev. rel.