Image Caption

Paal képe

Sziasztok!

Imagefield-del felvitt kép paraméterei szeretném az alábbiakkal kibővíteni:

<a rel="shadowbox"... ><img class="... egyediclass"...

Hogyan tudom ezt megtenni? A Shadowbox jelenleg még nem támogatja az imagecache által generált képeket:

The plan for the future is to add more
advanced configuration options and integrate with imagefield, imagecache,
image and other modules.

Az Eye Candy modul segítségével pedig a jQuery Reflection funkcióját szeretném kihasználni. Az utóbbi teljesen jól is működik ha node tartalomba illesztett kép hivatkozásába kézzel beírom <img .... class="reflect rheight30 ropacity60" />. Viszont az imegafield mezőnél ezt nem tudom megtenni.

A README.txt-t végigolvasva/csinálva számomra olyan, mintha még hiányozna valami. Nem értem, hogy HOL kell megadni, mit tegyen a "caption" részbe? Mi történik, hogy engedélyeztem az adott tartalom típusnál, valamint a beviteli formáknál is?

INSTALL:
1. Copy the image_caption folder to your Drupal modules folder
2. Add the css definition: .caption{} to the stylesheet used by your WYWSIWYG editor,
or perhaps to your theme style.css file.
3. Enable the Image Caption module in Drupal module administration.
4. After install, you can select the node types to include in image caption processing under
Site Configuration > Image Caption

Találtam egy template funkciót, de szemmel láthatólag nem működik, nem tudom miért:
http://drupal.org/node/246774

/**
* Theme an img tag for displaying the image.
*/
function zen_image_display($node, $label, $url, $attributes) {
    $attributes['class'] = "caption ". (isset($attributes['class']) ? $attributes['class'] : "");
  return theme('image', $url, $node->title, $node->title, $attributes, FALSE);
}

You need to replace "zen_image_display" with the name of your theme (theme_image_display). It wrappes a div around the image with the same width as the image. Quick to solve but took me days to figure it out ;)

Tudtok valami tanácsot adni, hogyan oldhatnám meg ezeket a problémákat?

Köszi, Pali

Drupal verzió: