SlideshowPro for list instead of detail

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 8, 2009   (RSS)

By jghoward - October 7, 2009 - edited: October 7, 2009

EDIT: I have resolved this problem, but leaving the post up since it might help others. It might be helpful to append the tutorial, also.

The problem was that for links to work, I had to change the slideshow html to:

<param name="allownetworking" value="all" />

Following the tutorial for SlideShow Pro in the documentation, I have been able to successfully create an xml slideshow of uploads for a particular record.

What the tutorial didn't cover however,is how to create a slideshow displaying uploads from all records.

I have used the code generator to hack together a best guess, and I'm close. The images are loading, but the link is not. Can you help me correct this code?

<?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php
require_once "/home/content/12/4805312/html/listingsmate/lib/viewer_functions.php";

list($listingsRecords, $listingsMetaData) = getRecords(array(
'tableName' => 'listings',
));

?>
<gallery>
<album title="Featured Properties" lgpath="/cmsAdmin/uploads/" tnpath="/cmsAdmin/uploads/thumb/">
<?php foreach ($listingsRecords as $record): ?>
<?php foreach ($record['featuredphoto'] as $upload): ?>
<?php if ($upload['isImage']): ?>
<img src="<?php echo $upload['filename'] ?>" title="<?php echo $upload['info1'] ?>" link="<?php echo $record['_link'] ?>" target="_self" />
<?php endif ?>
<?php endforeach ?>
<?php endforeach; ?>
</album>
</gallery>