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

moico’s picture

Title: Addding node title to Image Cache-Image selected via views "Field Mode" as an Imageflow Caption » How can I add the node title as a caption to Imageflow? (using Views Field Mode with a different Image Cache preset)
moico’s picture

Project: Views Slideshow: ImageFlow » Views (for Drupal 7)
Version: 6.x-1.0-beta1 » 6.x-3.x-dev
Component: User interface » Miscellaneous

Maybe 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!

moico’s picture

Component: Miscellaneous » Views Data
moico’s picture

Project: Views (for Drupal 7) » Views Slideshow: ImageFlow
Version: 6.x-3.x-dev » 6.x-1.0-beta1
Component: Views Data » Miscellaneous
Category: support » feature

For 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!

moico’s picture

Status: Active » Closed (fixed)

Well, 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

avior’s picture

isn't there a way to add the caption as text ,
not as a part of the image ?