CMS Multiple Images

44 posts by 3 authors in: Forums > CMS Builder
Last Post: July 14, 2008   (RSS)

By Dave - June 24, 2008

I don't think so. Most flash image viewers let you specify the url. Did you write this one yourself? You just need to figure out how to get the record number in there.

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
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] CMS Multiple Images

By edandrea - June 24, 2008

No I didnt write it, I just put'em together and try to make them fit. No point in putting a squar into the circle eh? I will check out the links you sent me, if I dont find anything there I may have to reconsider.



Didnt your listings manager do something like this?

Re: [Dave] CMS Multiple Images

By edandrea - June 25, 2008

Anyway, I have been looking at SlideShowPro. Was not sure if I needed the standard or Director version and will you be able to assist me in getting it to work?

By Dave - June 25, 2008

Sure. If you search the forum for "SlideShowPro" there's already some posts on it. It's the same idea using an XML file for the photos. We actually changed how CMS Builder works a couple months back to store thumbnails in a subdirectory called /uploads/thumb/ to make it more compatible with SlideShowPro (at the request of other users).

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!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] CMS Multiple Images

By edandrea - June 25, 2008 - edited: June 25, 2008

OK, I will invest in the SlideShowPro, but I allready downloaded the trial and searched your forum and have not found much except the one where you included the code but I had no luck trying this. I will get in contact with you tomorrow Are you sure I dont need the Director Version which uses a CMS?



<?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

I'm not sure exactly what version the other users were using. You might want to post on that thread and ask. I had thought it was the more lightweight version.

Did you manage to get it working with a plain XML and HTML file yet?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] CMS Multiple Images

By edandrea - June 25, 2008

Good point. I am getting well ahead of myself. I will give it a bash and get it working firsy then buzz you.

By edandrea - June 26, 2008

Hi Dave,

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

Hi edandrea,

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.