| 1 |
$Id$
|
| 2 |
DESCRIPTION:
|
| 3 |
This module uses JQuery to add captions to images.
|
| 4 |
The image title attribute is used to create the image
|
| 5 |
|
| 6 |
EXAMPLE:
|
| 7 |
<img src="/files/example.jpg" title="example caption" class="caption" />
|
| 8 |
This will result in an image with the caption of 'example caption'
|
| 9 |
|
| 10 |
Important:
|
| 11 |
Only images with the class of 'caption' will be included in processing.
|
| 12 |
Therefore, you need to be able to add the class of 'caption' to your selected images for captioning to work.
|
| 13 |
If you are using a WYSIWYG editor like FCKEditor or TinyMCE, you should enable the 'styles' select box
|
| 14 |
and add ".caption{}" to the stylesheet used by your WYSIWYG editor and configured in it's settings page.
|
| 15 |
Alternatively, you will need to find a way to add the class of caption to your images for captioning.
|
| 16 |
|
| 17 |
INSTALL:
|
| 18 |
1. Copy the image_caption folder to your Drupal modules folder
|
| 19 |
2. Add the css definition: .caption{} to the stylesheet used by your WYWSIWYG editor,
|
| 20 |
or perhaps to your theme style.css file.
|
| 21 |
3. Enable the Image Caption module in Drupal module administration.
|
| 22 |
4. After install, you can select the node types to include in image caption processing under
|
| 23 |
Site Configuration > Image Caption
|
| 24 |
|
| 25 |
Personally, I use the TinyMCE 'advanced image' plugin to select the caption class and set the image title when creating content.
|
| 26 |
You could also use a similar function in FCKEditor or find a way to add class="caption" to the images that you wish to caption.
|