Page 1 of 1

page component- setting multiple paths or variables

Posted: 22 Mar 2008, 19:05
by jamyshaw
I am trying to integrate the page component into a wordpress blog post. I have had a great degree of success with the iframe tag as follows:

<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.luvdigi.com/gallery/pagecomp ... elona.html");>
</iframe>

The only proplem is I want different posts to point to different places in the gallery/content folder i.e. barcelona slideshow should point to the content/barcelona/ folder and morzine slideshow should point to the images inside content/morzine/.

How?

I could make individual html files that set the path to different locations, but I don't want many different html files for each individual post. Can I somehow set a path variable in the blog post to alter the path location to different image folders?

And if so how would I change the syntax above?

Cheers!

Posted: 25 Mar 2008, 00:44
by mjau-mjau
Good question ... You should be able to use a copy of the "slideshow.php" for that. Simply use this file instead of your "pagecomponent.html" and you can add parameters to the URL like "myslideshow.php?path=content/barcelona/" and "myslideshow.php?path=content/morzine/".

You will of course first need to change the general parameters of the slideshow to adapt it towards a pagecomponent. You can do that either by adding the parameters directly in the document, or to its configuration file.

You may also need to change the width/height parameters inside the document from 100%:
Code
var so = new SWFObject("slideshow.swf", "slideshow", "500", "400", "7", "#<?=$bgcol;?>");
Tell me how it goes!

Posted: 25 Mar 2008, 20:23
by jamyshaw
Cool, thanks Karl. Didn't think of using the php file. I'll try this and let you know how it goes.

The other issue I've been having is because it is now sourcing from the content folder all the images are of course the larger size to fit in the standard gallery. Is there a way of getting these to downscale to fit in the smaller slideshow window or do I have to make another folder with downscaled copies?

Cheers.

Posted: 26 Mar 2008, 01:11
by mjau-mjau
The slideshow already resizes images to fit within the slideshow stage dimensions. If you want the images 'taylored' to fit exactly to your smaller pagecomponent, you would need to make individual copies in a separate folder.