Image gallery problems

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 12, 2008   (RSS)

Re: [chassa2556] Image gallery problems

By chassa2556 - June 12, 2008

Here is the difference in the two galleries the one that works is the Dower house one at the top the Estate Images one is not working the name of the images record in this is '$estategallery'

Dower house images

<table>
<tr>
<?php foreach ($customRecord['images_upload'] as $upload): ?>
<td><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /></td>
<?php $maxCols=3; if (@++$count % $maxCols == 0): ?>
</tr>
<tr>
<?php endif ?>
<?php endforeach ?>
</tr>
</table>


Estate Images

<table>
<tr>
<?php foreach ($estate_galleryRecord['image_upload'] as $upload): ?>
<td><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /> </td>
<?php $maxCols=3; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>

</tr>
<tr>
<?php endif ?>
<?php endforeach ?>
</tr>

</table>

Re: [chassa2556] Image gallery problems

By chassa2556 - June 12, 2008

http://www.straloch.com/cms/stralochestate_gallery2.php

Re: [chassa2556] Image gallery problems

By Donna - June 12, 2008

Hi chassa2556!

I think we got this sorted out on the phone -- but just in case anyone else comes across something like this, the issue was a bit of duplicated code on the second page. Once we removed the extra "endif" statement, it started working perfectly. :)

Let us know if you have any other problems!
Donna

--
support@interactivetools.com