SS includes only when there is picture content

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 6, 2009   (RSS)

Re: [chassa2556] SS includes only when there is picture content

By Dave - January 6, 2009

Hi chassa2556,

Try this:

<?php if ($record['uploads']): ?>
<?php include("image-grid.php") ?>
<?php else: ?>
sorry no uploads
<?php endif ?>


Except replace $record['uploads'] with the variable name and uploads field used in your viewer code. Eg: could be $galleryRecord['photos'] or something else.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com