Displaying images via Lightbox

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 7, 2008   (RSS)

Re: [thinkng] Displaying images via Lightbox

By Perchpole - October 7, 2008

Hi, Thinkng -

This code looks OK. However, it's the PHP which you wrap around the code which is important. You should have something like this...

<?php foreach ($catalogueRecord['yourimages'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>

your code....

<?php elseif ($upload['isImage']): ?>

alternative code...

<?php endif ?>
<?php endforeach ?>



This tells the system how to display uploads which have thumbnails. If no thumbnails are available, it uses the alternative code.

:0)

Perch