Posted by luco on October 24, 2009 at 11:27pm
| Project: | Image Caption |
| Version: | 6.x-2.3 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
hey there,
during my portfolio redesign, I felt a need for captions besides, and not below, images. the only way I could do this was directly hacking lines 82-89 of image_caption_filter.module, adding the following code:
//captions besides images
if (in_array($class, array('image-left2', 'image-right2')) && ($title)) {
$imgText = preg_replace ('/class=\"(.+?)\"/i', '', $imgText);
$width += 100;
$returnText = "<div class=\"" . $class . "\" style=\"width: " . $width . "px\">"
. $imgText
. "<div class=\"caption\">" . $title . "</div></div>";
return $returnText . $alt_warning;
}I obviously created classes image-left2 and image-right2.
now I'm not a big fan of hacking modules, so I'd like to suggest this as a feature. can do?
cheers,
Luciano