CMS Multiple Images
44 posts by 3 authors in: Forums > CMS Builder
Last Post: July 14, 2008 (RSS)
By Dave - June 24, 2008
Here's some google links on it:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14253&sliceId=1
interactivetools.com
Re: [Dave] CMS Multiple Images
By edandrea - June 24, 2008
Didnt your listings manager do something like this?
By Dave - June 24, 2008
Sorry about that!
interactivetools.com
Re: [Dave] CMS Multiple Images
By edandrea - June 25, 2008
By Dave - June 25, 2008
The process would be the same, create a working version with HTML first, and then get CMS to generate the XML file.
Hope that helps!
interactivetools.com
Re: [Dave] CMS Multiple Images
By edandrea - June 25, 2008 - edited: June 25, 2008
<?php
echo "<?xml version='1.0' encoding='UTF-8'?>\n";
require_once "../lib/viewer_functions.php";
$options = array();
$options['tableName'] = 'news';
$options['recordNum'] = '';
$options['where'] = '';
$record = getRecord($options);
?>
<gallery>
<album lgPath="<?php echo $SETTINGS['uploadUrl']; ?>"
tnPath="<?php echo $SETTINGS['uploadUrl']; ?>"
title="<?php echo htmlspecialchars($record['title']); ?>"
description="<?php echo htmlspecialchars($record['description']); ?>"
tn="album1/preview.jpg">
<?php if ($record): ?>
<?php foreach (getUploads($options['tableName'], 'uploads', $record['num']) as $upload): ?>
<img src="<?php echo htmlspecialchars($upload['filename']); ?>"
title="<?php echo htmlspecialchars($upload['info1']); ?>"
caption="<?php echo htmlspecialchars($upload['info2']); ?>"
link="<?php echo $upload['urlPath'] ?>"
target="_blank"
pause="" />
<?php endforeach ?>
<?php endif ?>
</album>
</gallery> I tried this and had no luck. Thanks alot Dave. I even emailed SlideShow but no return message yet.
By Dave - June 25, 2008
Did you manage to get it working with a plain XML and HTML file yet?
interactivetools.com
Re: [Dave] CMS Multiple Images
By edandrea - June 25, 2008
By edandrea - June 26, 2008
This is your worst nightmare :).
Ok. I have got thr slideshowpro and loaded it on to the server and it is working www.smoaklandco.com/ds_detail.php. Of course it is not showing the other listings images independently because I know now that we are going to have to add code. It is now generated from "images.xml" code as follows:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album title="House" description="Images of a property" lgpath="cmsAdmin/uploads/" tnpath="cmsAdmin/uploads/thumb/">
<img src="sc_21.jpg" />
<img src="sc_22.jpg" />
<img src="sc_23.jpg" />
</album>
</gallery>
-----------------------------------------------
In my flash movie (slide show) it is designated to this file "images.xml". I know we are at least going to have to change file extensions. And I did try to do it myself with code I researched in your forum but without success.
I did check out the individual .xml.php code when I was testing and still got the same old results by viewing the code eg. ds_detail.xml.php?1 etc..
I have now set everything back to normal. What shall I do next?
Thanks again
Emil
By Jake - June 26, 2008
Thanks for your reply!
It looks like the next step you need to take here is to set up SlideShowPro to dynamically load the XML file with the record number variable at the end of the URL, as Dave mentioned in a couple previous posts.
I didn't look into this too closely, but I did find a manual on the SlideShowPro page which outlines some steps for dynamically loading XML documents on different pages in order to change the content of the slide show:
http://slideshowpro.net/products/slideshowpro/slideshowpro_docs
You'll want to have a look at the "SlideShowPro for Flash Customization Guide" link on that page.
While we aren't really experts with SlideShowPro ourselves, if you do have any questions while working this out let us know and we'll do our best for you. [:)]
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com
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.