Hi, I have a working installation of Slideshow Pro integrated with my Photo Gallery module.
The set up is so far very basic but working a-Ok. I’ve set up the main slideshow (showing an entire Gallery) so that it can be embedded into any weblog entry. Example here:
[removed - this example is no longer available]
The QUESTION - client would like the ability embed a slideshow based on gallery Category into various weblog entries. The slideshow would show ONLY images that are in a gallery Category, not the entire Gallery. **I would like to do this using only one xml file (client can’t edit xml each time they want to add a new slideshow).
Here is my current working xml file (based on the the fine 5pieces Slideshow Pro Tutorial, and my Gallery id is “2”)
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
{exp:query sql="SELECT cat_id,cat_folder FROM exp_gallery_categories WHERE gallery_id = '2'"}
{exp:gallery:entries gallery="gallery" category="{cat_id}" limit="500"}
{exp:gallery:category_name}<album title="{category}" description="{category_description}" >{exp:gallery:category_name}
{entries}
<a href="http://www.buildinggoodness.org/testsite/images/gallery/{cat_folder}/{filename}.jpg">http://www.buildinggoodness.org/testsite/images/gallery/{cat_folder}/{filename}.jpg</a>
{/entries}
</album>
{/exp:gallery:entries}
{/exp:query}
</gallery>
I *thought* I might be able to do something like this:
1. Set up a custom field which I called slideshow_id - client enters gallery Category number there.
2. Change XML file to use that custom field for the category to pull slideshow images from.
as follows:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
{exp:query sql="SELECT cat_folder FROM exp_gallery_categories WHERE gallery_id = '2' AND cat_id='{slideshow_id}'"}
{exp:gallery:entries gallery="gallery" category="{slideshow_id}" limit="500"}
{exp:gallery:category_name}<album title="{category}" description="{category_description}" >{exp:gallery:category_name}
{entries}
<a href="http://www.buildinggoodness.org/testsite/images/gallery/{cat_folder}/{filename}.jpg">http://www.buildinggoodness.org/testsite/images/gallery/{cat_folder}/{filename}.jpg</a>
{/entries}
</album>
{/exp:gallery:entries}
{/exp:query}
</gallery>But, that’s not working…
I’m pretty new to Expression Engine and while I’m having fun learning I still need advice on how to get all bits & pieces to interact and hoping someone can share knowledge and advise on this interesting puzzle!