Hi all.
Pretty big newb here.
I'm trying to make a Lightbox only display one picture on the page, yet have the lightbox's "slideshow" show additional pictures. I know how to do this....I just need to make sure the additional pictures get a class of "lightbox_hide_image". See below.........
As it stands, it's displaying every picture that was uploaded on the display page. To repeat, I would like it to display the first picture ONLY on the display page but show all other uploaded pictures in the lightbox's slideshow.
The current code which displays all uploaded pictures to the page is thus:
<?php if ($node->teaser): /** BEGIN IMAGES **/ ?>
<?php if ($imagegroup = $node->content['group_image_information']): ?>
<?php if (trim($imagegroup['field_storyimage']['#value'])): ?>
<fieldset class="content-image">
<?php // Teaser view, show first image only if multiple ?>
<?php print $imagegroup['field_storyimage']['#value']; ?>
</fieldset>
<?php endif; ?>
<?php endif; ?>
<?php else: // Full node view ?>
<?php if ($field_storyimage[0]['fid'] != 0): ?>
<fieldset class="content-image">
<?php foreach ($field_storyimage as $image): ?>
<?php print $image['view']; ?>
<?php endforeach; ?>
<?php if ($field_image_credit[0]['view']): ?>
<?php print $field_image_credit[0]['view']; ?>
<?php endif; ?>
<?php if ($field_imagecaption): ?>
<?php print $field_imagecaption[0]['view']; ?>
<?php endif; ?>
</fieldset>
<?php endif; ?>
<?php endif; /** END IMAGES **/ ?>
Somewhere within that code, I'd like to have an else statement that says something like: "If the image submitted is not the first image submitted then make it a <fieldset class = lightbox_hide_image></fieldset>.
Where would the best place be to insert this code?
Thanks!