Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Image gallery problems

 

 


chassa2556
User

Jun 12, 2008, 8:15 AM

Post #1 of 4 (441 views)
Shortcut
Image gallery problems Can't Post

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


chassa2556
User

Jun 12, 2008, 9:00 AM

Post #2 of 4 (436 views)
Shortcut
Re: [chassa2556] Image gallery problems [In reply to] Can't Post

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>


chassa2556
User

Jun 12, 2008, 9:05 AM

Post #3 of 4 (434 views)
Shortcut
Re: [chassa2556] Image gallery problems [In reply to] Can't Post

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


Donna
Staff / Moderator


Jun 12, 2008, 9:09 AM

Post #4 of 4 (431 views)
Shortcut
Re: [chassa2556] Image gallery problems [In reply to] Can't Post

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


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4