Does anyone know how to feed multiple images from a cck imagefield to slideshow creator?

Thanks keith

Comments

emdalton’s picture

I'm on Drupal 5.1.

Triopost’s picture

Does anyone know how to do this, or is it even possible?

rob_beetleweb’s picture

Having problems with this too, so tracking this post.

rob | www.beetleweb.com

rob_beetleweb’s picture

In fact, I just found this: http://drupal.org/node/109080

    $images = "";
    $ss_counter = 0;
    foreach ((array)$field_slideshow_images as $item) {
        if($ss_counter) $images .= ",";
        $temp_str = $item['view'];
        $reg_ex = '/http[a-zA-Z0-9\.\:\/_\-]*/';
        preg_match($reg_ex, $temp_str, $img_filepath);
        $images .= "|" . $img_filepath[0] . "|";
        $ss_counter++;
    }
    slideshow_creator_process_text('[slideshow: 2, rotate=2, name=fv_slideshow, img='.$images.'] '); 

I dropped this into my contemplate and substituted $field_slideshow_images for the name of my own image field (which is set to multiple values and so has say 6 images in it.) Seems to work quite well. Thanks to Brendan and Massa.

Would still like to try a Thickbox equivalent and compare that, but can't find enough documentation on that yet to fathom it.

rob | www.beetleweb.com

emdalton’s picture

http://drupal.org/project/flash_gallery lets you feed from a CCK image gallery into any of several Flash display objects.

stamat’s picture

I did sth like that with Image Cache and The cReator

look at the example code coming with the creator :

[slideshow: 2,
rotate=2,
blend=1,
img=|http://drupal.org/themes/bluebeach/logos/drupal.org.png|drupal.org|Drupal|The ultimate CMS. Download it now!|Drupal|, img=|http://www.mysql.com/common/logos/mysql_100x52-64.gif|http://www.mysql.com|MySQL|Free and reliable SQL server and client.|_self|,
dir=|files/|yes||Generic Photos|Arent they great?||]

Notice the last line - the creator is reading a directory(folder) - One can easy set this folder to be the one associated with the needed imache cache preset , which on the other hand is to be associated with the image field from the administer=>"content type" => "XXX" =>"manage fields".
In other words , one should:
1. create a imagecache preset "news_preset"
2. create content type "news"
3. create image field for that content type , named for instance "newsimage"
4. associate the "newsimage" with the imagecache preset "news_preset" from the "Manage fields" menu
5. look at your file structure to find the PATH where your imagecache is stored (files/imagecache/news_preset/files/)
6. Put that path in the DIR clause of the slideshow creator.
7. Should work now...

I hope that helps.