Image gallery problems
4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 12, 2008 (RSS)
By chassa2556 - June 12, 2008
Getting rather frustrated having made a successful image gallery in CMSB.
http://www.straloch.com/cms/dower_downstairs_gallery.php
I thought to myself - great I can just change the header information and the record names to suit with new pages and then I'm on my way.... No such luck!
I have made another page with the name $estate_galleryRecord. I understand I need to change the information in the header which I've done but it keeps coming up with php errors when I change the name the record name the gallery is calling to. I can't seem to duplicate what I've done for other gallery pages. Could you tell me what I need to change in the gallery section of the code.
Please be as precise as possible as I'm in the UK and if I don't get it I can't talk to you until the end of the following day...
Many thanks in advance
http://www.straloch.com/cms/dower_downstairs_gallery.php
I thought to myself - great I can just change the header information and the record names to suit with new pages and then I'm on my way.... No such luck!
I have made another page with the name $estate_galleryRecord. I understand I need to change the information in the header which I've done but it keeps coming up with php errors when I change the name the record name the gallery is calling to. I can't seem to duplicate what I've done for other gallery pages. Could you tell me what I need to change in the gallery section of the code.
Please be as precise as possible as I'm in the UK and if I don't get it I can't talk to you until the end of the following day...
Many thanks in advance
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>
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!
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
--
support@interactivetools.com