I purchased Slideshowpro last fall searching for a gallery solution but it didn't work to well. Now it works great with views integration. I still need to figure out how to hide blank slides it if there is a set number in the CCK field.
Recipe requires:
1. A purchased copy of Slideshowpro (Sorry, I know it's not the drupal way). http://slideshowpro.net/
2. SSP Integration Module http://drupal.org/project/ssp
3. Views, CCK, File Field, Imagecache, context ( http://drupal.org/project/context needed for the embed) ect.
4. Views default argument from context. http://drupal.org/project/views_arg_context
If the site is in a sub-directory there are some problems. Move the slideshowpro.swf to the root of the Drupal site. Here is some issues on configuring it. http://drupal.org/node/750220 (This is not the Drupal way) I changed line 36 in ssp_multiple.cck to 'field_name' => 'field_slideshow_nodes' and in ssp_multiple.cck to 'field_name' => 'field_slideshow_images' to prevent namespace issues with other fields.
Go to /admin/content/node-type/article/fields and add 'existing field' file:field_slideshow_images (Images) as field. Also you can create a group to put the file field in so you can collapse it to keep it clean and tidy. It's really smooth with fields for title and description which show very nicely on SSP.
Read the readme.txt file in this issue queue. http://drupal.org/node/723792 It explains how to set up a tiny module to pass the current NID of the node displayed to views using context_set() in the context.module. Once the block view is created use context.module to embed it in into the articles node.
http://groups.drupal.org/files/sspdemo1.jpg
http://groups.drupal.org/files/sspdemo2.jpg
In the ssp.module I added an if condition to line 74 which now removes the blank slides. It's just slideshow awesomeness right now.
if($field && !in_array($node->nid, $nodes_seen) && is_array($node->$field)) { foreach($node->$field as $image) { if ($image['filepath']) { <-------------------------------------------------------------- $src = $base_path.$image['filepath']; $description = $image['data']['description']; $title = $image['data']['title']; $thumbnail = ssp_imagecache_generate('ssp_thumbnail', $image['filepath'], TRUE); if(is_array(file_validate_is_image($image))) { print '' . "\n"; } }adamsohn
}
Post your Answer