Image Caption & More
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
What it does
Wraps all images in content with a
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
- [D7] Audio/Video Chat - https://www.drupal.org/node/2304319#comment-9047013
- [D7] Daemon API - https://www.drupal.org/node/2316855#comment-9047077
Pending review(s)
- [D7] OSM Route - https://www.drupal.org/node/2129127
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.
