I'm not a PHP coder, but I really need some help.
I'm using Lightbox2 + CCK + Imagefield to create images in my stories. Currently I display the image and the description in my content-field-field_image.tpl.php file like this....
<?php if ($item['data']['description']) ?><h5 class="description"><?php { print $item['data']['description']; } ?></h5>
I've been able to piece that much together.
But how can I alter that code to take a variable number of images and place them in a Lightbox2 slideshow?
Often when stories are uploaded, they contain 1 picture. Sometimes they contain 5. And sometimes they can have 12. It all depends on how busy the photographer was that day.
I'd like to be able to have one picture showing, but allow the reader to click "next" or something like that to move to the next image.
I'm sure someone has done this before. Any help would be very very much appreciated.
Comments
Interesting.
Your needs mimic mine.. I am building sites for photographers who upload daily reports. I'm still working to create the ideal content types for my crsurfcam photo blog. I found this thread researching if I am going to implement a similar style of image attachment for a news content type.
>I'd like to be able to have one picture showing, but allow the reader to click "next" or something like that to move to the next image.
the project custom pagers may help. I cannot say for sure if it will integrate in with views/cck/imagefield.. I am using the other method where each image is a node. (in my case, I wanted to make sure they could rate the photos)
http://drupal.org/node/262854 - http://drupal.org/node/371358