Can you please help me in setting up this gallery?
4 posts by 3 authors in: Forums > CMS Builder
Last Post: November 25, 2008 (RSS)
By chassa2556 - June 9, 2008
Could you help me to set up this gallery please
http://www.straloch.com/stralochestatephotos.php
Its a simple 3 column grid with sized images
Many thanks in advance
http://www.straloch.com/stralochestatephotos.php
Its a simple 3 column grid with sized images
Many thanks in advance
Re: [chassa2556] Can you please help me in setting up this gallery?
By Dave - June 9, 2008
Hi Charles,
Start by creating a viewer that displays a list of images. Then have it output each image in a <td></td> than add this just before the <?php endforeach ?> to have it output a </tr><tr> every 3 columns:
<?php $maxCols=3; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
You can also have a look at this post:
http://www.interactivetools.com/iforum/P62848#62848
Hope that helps! Let me know if you need more details.
Start by creating a viewer that displays a list of images. Then have it output each image in a <td></td> than add this just before the <?php endforeach ?> to have it output a </tr><tr> every 3 columns:
<?php $maxCols=3; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>
You can also have a look at this post:
http://www.interactivetools.com/iforum/P62848#62848
Hope that helps! Let me know if you need more details.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Can you please help me in setting up this gallery?
How do you have it output each image in a <td></td>?
Burgess
Re: [jburgess] Can you please help me in setting up this gallery?
By Dave - November 25, 2008
Just put those inside the foreach loop like this:
Hope that helps!
<?php foreach ... ?>
<td> ... image display code here ... </td>
<?php endforeach ?>
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com