Lightbox2 Slideshow Linked text with Contemplate

Events happening in the community are now at Drupal community events on www.drupal.org.
nflowers1228's picture

I posted this on the main drupal.org forum, but thought maybe someone locally has experience with this.

I'm trying to create a clickable link with Lighbox2 and contemplate. I have read all the posts, but can't get it to work. I just want to have text that says "Views slideshow" and opens the Lightbox slideshow. The link is on the main page of content so I am using Contemplate and modifying the link in the body area.

Here's what I have done:

field_image_gallery is the CCK field, a repeating field that is part of the content type.

<a href="http://giving.yale.edu/<?php print $node->field_image_gallery[0]['filepath'] ?>" rel="lightbox[<?php print $node->field_image_gallery[0]['fid'] ?>][<?php print $node->field_image_gallery[0]['data']['title'] ?>]">Shows only one image - title </a>

This is the filepath:

<?php
print $node->field_image_gallery[0]['filepath']
?>

This is the group:
<?php
print $node->field_image_gallery[0]['fid']
?>

This is the caption or title:
<?php
print $node->field_image_gallery[0]['data']['title']
?>

This opens the lightbox window with the first window and the caption below the image. The Next arrow displays to the right. Clicking on the next arrow, there is no image and the same caption displays as the first picture/page. Also, it only indicates there are 2 images, where there are really 8.

Any help is appreciated.

Comments

Answered my own question

nflowers1228's picture

Answered my own question :-)
http://drupal.org/node/1197112

Nancy Flowers-Mangs

Connecticut

Group categories

County or Region

Event Type

Featured Item (Admin Only)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: