DISPLAY A BACKGROUND IMAGE USING ONLY THE URL OF THE IMAGE OR THUMBNAIL - Aug 3rd, 2010


If you’re using an image as a background image for a page, you can use the code below in the CSS to specify the
location of the image:



<?PHP foreach ($record['gallery_images'] as $upload): ?>
<?PHP echo $upload['urlPath'] ?>
<?PHP endforeach ?>



Or



<?PHP foreach ($record['gallery_images'] as $upload): ?>
<?PHP echo $upload['thumbUrlPath'] ?>"
<?PHP endforeach ?>



If you want to specify a particular thumbnail’s location, just put a 2, 3 or 4 after thumbUrlPath



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service