Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am using Imagecache and Views Slideshow Imageflow. I want to display a specific imagecache preset image together with the node title as caption in imageflow.
Is it possible to do that? I cannot use the "Node-Mode" of the view because the imagecache preset to be displayed in the imageflow is different from the one used in the node display.
Thanks!
Moico
Comments
Comment #1
moico CreditAttribution: moico commentedComment #2
moico CreditAttribution: moico commentedMaybe the views module is better here?
I would need a view which returns the title of the node of an image as ALT tag. But this not for the original image of the node but for the same image, only a different imagecache preset.
Reason: I am using slideshow imageflow to display nodes, but using a different imagecache preset. The slideshow imageflow needs the ALT tag of the image to display the captions correctly.
Thanks for any ideas!
Comment #3
moico CreditAttribution: moico commentedComment #4
moico CreditAttribution: moico commentedFor anyone who might be interested in this functionality:
I don't know if it can be handled at the moment using imageflow. I now have added the node title to the image itself using the module imagecache_actions. In my version of imagecache_actions (6.x-1.6) there was a bug: In file utility.inc I had to change line 274
from
$sql = "SELECT nid, f.fid FROM {upload} AS u INNER JOIN {files} AS f N u.fid = f.fid WHERE f.filepath = '%s' LIMIT 1";
to
$sql = "SELECT nid, f.fid FROM {upload} AS u INNER JOIN {files} AS f ON u.fid = f.fid WHERE f.filepath = '%s' LIMIT 1";
as the "O" of the "inner join ... ON ... " was missing.
Nevertheless it would be great if this could be added to imageflow module?!
Thanks!
Comment #5
moico CreditAttribution: moico commentedWell, it seems as if I am talking just to myself. Anyway, here is the solution: With the module
http://drupal.org/project/imagefield_tokens
you can add the missing ALT and TITLE tags to the images uploaded via imagefield using imagecache.
Now the imageflow module works as designed.
Thanks for the great module!
Moico
Comment #6
avior CreditAttribution: avior commentedisn't there a way to add the caption as text ,
not as a part of the image ?