Image Issue
3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 29, 2014 (RSS)
I am having a bit of an issue getting my slideshow image to display more than the first image. You can see the current sandbox site here: http://penguincondo.com/en/index.php
I have attached the file.
Any help would be greatly appreciated.
Ragi
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
By Deborah - December 29, 2014
Hi, Ragi.
At first glance, I'm thinking you might just need to move your first foreach inside the slideshow div.
INSTEAD OF THIS:
<?php foreach ($slideshowRecords as $record): ?>
<div id="mySlideshow">
<div class="slideshow">
<?php foreach ($record['image'] as $index => $upload): ?>
<!-- BEGIN slide -->
<div class="slide-items">
<a href=''><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /></a>
</div>
<!-- END slide -->
<?php endforeach ?>
<?php endforeach ?>
</div>
CHANGE TO:
<div id="mySlideshow">
<div class="slideshow">
<?php foreach ($slideshowRecords as $record): ?>
<?php foreach ($record['image'] as $index => $upload): ?>
<!-- BEGIN slide -->
<div class="slide-items">
<a href=''><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /></a>
</div>
<!-- END slide -->
<?php endforeach ?>
<?php endforeach ?>
</div>
See if that works.
~ Deborah
Deborah: That did it! Thank you... couldn't see the forrest for the trees!
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke