CMS & Slideshow Pro (LR2)

25 posts by 7 authors in: Forums > CMS Builder
Last Post: June 6, 2010   (RSS)

By drewh01 - March 18, 2009

Has anyone here been able to get SlideShow Pro to work with CMS Builder? I am exporting the files using Lightroom 2 and having problems to get the gallery to display on the detail view page properly.

I can send more info if I know what to post.....

Re: [drewh01] CMS & Slideshow Pro (LR2)

By Damon - March 19, 2009

Here is a page with details about using Using SlideShowPro With CMS Builder:
http://www.interactivetools.com/docs/cmsbuilder/slideshowpro.html

Hopefully that helps.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] CMS & Slideshow Pro (LR2)

By drewh01 - March 19, 2009

Does this work with the Lightroom 2 version of SSP? Or the newest standalone player?

The standalone, Flash version and LR2 are all different I believe.....

The LR2 version uses a lot of Javascripting and once I get to part 2 of the link you sent....things don't match up. Is there an updated version of these instructions?

For instance....

Here is some of the code taken from the standalone player:

<div id="flashcontent">
This SlideShowPro photo gallery requires the Flash Player plugin and a web browser with JavaScript enabled.
</div>

<script type="text/javascript">
var so = new SWFObject("loader.swf", "loader", "650", "450", "8", "#FFFFFF");
so.addParam("allowFullScreen","true");
so.addParam("quality", "best");
so.addVariable("paramXMLPath","param.xml");
so.write("flashcontent");
</script>

Re: [drewh01] CMS & Slideshow Pro (LR2)

By drewh01 - March 19, 2009

**followup** (got it to work)

Note: Those posted instructions ONLY work with the Flash version of SSP.

Re: [drewh01] CMS & Slideshow Pro (LR2)

By sublmnl - March 20, 2009

anyone have a demo of how it looks?

Re: [sublmnl] CMS & Slideshow Pro (LR2)

By sublmnl - April 30, 2009 - edited: April 30, 2009

Anyone know how to get the captions or title to show up in the caption area?

this is what normal code looks like:
<img src="01.jpg" caption="Your Caption Goes Here" />

this is what I tried in the XML.PHP:
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['caption'] ?>" />
and this:
<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['title'] ?>" />

Which produced this in the caption area of SSP:

Notice: Undefined Index: title in /Path/To/images.XML.PHP on line 25

Help!? Please

Re: [sublmnl] CMS & Slideshow Pro (LR2)

By ross - May 1, 2009

Hi there.

I think you are on the right track here but when you are trying to call on the image attributes like title or caption you need to use info1 or info2 like this:

caption="<?php echo $upload['info1'] ?>"

I don't know for sure which one you'll need as that's something you customize in your own system. You can see what you've set though by going into the Section editor and looking at the advanced settings of your upload field.

Or your could just try info1, info2, info3 or info4 one after another. There's only 4 so it's a pretty quick thing to guess and check :).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@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: http://www.interactivetools.com/consulting/

Re: [ross] CMS & Slideshow Pro (LR2)

By sublmnl - May 1, 2009 - edited: May 1, 2009

You rule!

That works. Althought I don't know why the Title and Caption fields in the CMS are named title1, title2 and so on.
BUT,
it works!

EDIT: I checked the advanced upload fields and there are 5 total and the first two are named: Title and Caption.
I don't know what else you could use it for but if you had some need I bet with the PHP you could pull it out somehow.


This is what I am using:

<img src="<?php echo $upload['filename'] ?>" caption="<?php echo $upload['info1'] ?>" />

this shows the TITLE field in the Image uploader in the CMS.
if you use info2, it picks up the caption field in the Image uploader in the CMS.

BINGO!

Thanks.

Now stickie this post for all the other IT-CMS monkeys out there! [cool]

Re: [sublmnl] CMS & Slideshow Pro (LR2)

By sublmnl - October 29, 2009 - edited: October 29, 2009

I wanted to update this post with a question:

We have code like this for multiple albums in a gallery which causes us to come back and add more 'albums' to the gallery when a client wants them. We ask for a thumbnail, title and description - add it to the CMS and the xml file... and they're busy uploading after that.
<gallery>
<album title="Title of the Album" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/thumb/3591690865_4e254e3132_o.jpg" lgpath="/images/gallery/">

<?php foreach ( $photosRecord['may_30_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>

<album title="Title of the Album2" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/2009_03_17/thumb/3480849053_d58d631322_o.jpg" lgpath="/images/gallery/2009_03_17/">

<?php foreach ( $photosRecord['march_17_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>

<album title="Title of the Album3" description=Short description goes here for all to see" tnpath="/images/gallery/thumb/"
tn="/images/gallery/2009_03_07/thumb/3480864873_b03d97e246_o.jpg" lgpath="/images/gallery/2009_03_07/">

<?php foreach ( $photosRecord['march_7_2009'] as $upload): ?>
<img src="<?php echo $upload['filename'] ?>"
caption="<?php echo $upload['info1'] ?>" />
<?php endforeach ?>
</album>
</gallery>



Well, What if there was a way to have the gallery, pull from the section record that there was more than one and just write it out?

I'm not proficient enough in PHP to come up with an IF statement to pull more records if there are more but I imagine it can be done.

That way the client can just add away after we add the image upload to the CMS and the XML.PHP file 'knows' to just make another album.

anyone?