Last image not showing
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 26, 2010 (RSS)
By darrylo - March 26, 2010
I'm using an image slider to display images and the last image doesn't show (although the slider indicates the correct number of images but the last one is blank.
http://afahomes.com/listing.php?144-Old-Post-Road-1
My code:
<div id="slider3">
<ul>
<?php foreach ($listingsRecord['uploads'] as $upload): ?><?php if ($upload['isImage']): ?>
<li style="background-image:url(<?php echo $upload['urlPath'] ?>)">
</li>
<?php endif ?>
<?php endforeach ?>
</ul>
</div>
http://afahomes.com/listing.php?144-Old-Post-Road-1
My code:
<div id="slider3">
<ul>
<?php foreach ($listingsRecord['uploads'] as $upload): ?><?php if ($upload['isImage']): ?>
<li style="background-image:url(<?php echo $upload['urlPath'] ?>)">
</li>
<?php endif ?>
<?php endforeach ?>
</ul>
</div>
Darryl
http://darrylo.com
http://darrylo.com
Re: [darrylo] Last image not showing
By Jason - March 26, 2010
Hi,
I took a look at the file and it doesn't seem to be a problem with the CMS. All of the uploaded files do exist on the server, so it isn't an issue with the image either.
The best way to debug this is to go to your page (http://afahomes.com/listing.php), go to Edit>View Source and then copy and paste this into a static HTML file and see if you can get that working.
If you had a version of this file that was working, you could also compare differences between those.
Let me know how it goes.
I took a look at the file and it doesn't seem to be a problem with the CMS. All of the uploaded files do exist on the server, so it isn't an issue with the image either.
The best way to debug this is to go to your page (http://afahomes.com/listing.php), go to Edit>View Source and then copy and paste this into a static HTML file and see if you can get that working.
If you had a version of this file that was working, you could also compare differences between those.
Let me know how it goes.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/