ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Slideshow Pro and Photo Gallery - show different gallery category on weblog entry by custom field?

August 28, 2009 12:14pm

Subscribe [4]
  • #16 / Sep 09, 2009 7:23pm

    Beebs

    207 posts

    Cheers.
    Now look at part of generated XML on your code below :

    <album title="BGF-Fluvanna" description="" id="2">

    the variable “id” there should be dynamic. I know it’s “dynamic” because it is coming from {slideshow_id}. But it’s our task now to make it pass the segment boundaries.

    BTW, on my test - without using slideshow pro - the category gallery shows perfectly in the entry - so, I believe the problem relly on the dynamic-ness of the XML.

    Let’s hope in the next hour there’s breakthrough.
    Any comments from the expert?

  • #17 / Sep 09, 2009 7:56pm

    charmedworks

    62 posts

    Not yet - I have someone here looking at a PHP based solution using the code based on part 1 of the tutorial.

    And am also hoping to hear back from Donovan or others on code based on part 2 of the tutorial that has been added to this topic.

  • #18 / Sep 09, 2009 8:11pm

    Beebs

    207 posts

    Perseverance with believe in logical truth is always have a way at the end. That’s at least awisdom that I got for staying up 18 hours with too many coffee.

    I made 2 test entries and It looks really work. Have a look here :

    remove - not go live yet/ no permission from client - PM me if you want to have alook
    and other page

    remove - not go live yet/ no permission from client - PM me if you want to have alook

    If that’s what you meant, please email me your files (both the template and XML) I’ll have a look.

  • #19 / Sep 09, 2009 8:36pm

    charmedworks

    62 posts

    Hi Beebs, you make me laugh with the coffee 😊
    I am seeing your slideshow great in IE, it is not working for me in Firefox (sorry!)
    That said, I’m sending my current files to your personal email, take a look and let me know what you think.

  • #20 / Sep 09, 2009 8:42pm

    Beebs

    207 posts

    That’s strange. I mostly work with FF, while most of my clients using Safari. I tested and both work well - what version of FF you have? and when you said does not work - does it mean in terms of the layout or the slideshow does not show up?
    But thanks for update that It works with IE - because that’s what my agreement as far as it goes.

  • #21 / Sep 14, 2009 11:39am

    charmedworks

    62 posts

    Hi Beebs
    FF version 3.0.13 and, I see the page fine but do not see the slideshow (a white space there only).

  • #22 / Sep 14, 2009 11:57am

    charmedworks

    62 posts

    We have come up with a solution for the one XML, one .swf Slidesshow Pro installation that allows multiple slideshows on different weblog entries based on Photo Gallery Module album categories.

    The solution we are using combines SWFobject, custom php, and custom fields.

    NOTE: this is an inelegant solution requiring the client to paste the entire slideshow embed code into a custom field in the weblog entry and then change the number for the Photo Gallery Module album category in the code.  We may be working more on this solution to refine it.  If so I will post updates to this thread.  For now though, this works.

    The Slideshow Pro .swf file has been set up to dynamically call the XML file based on instructions from this link from the Slideshow Pro documentation:
    http://wiki.slideshowpro.net/SSPfl/C-DynamicallyAssignXML
    (We are using Action Scriot 3.0)
    The .swf file was then published and uploaded to the folder containing the gallery we are workign with in the Photo Gallery Module. The file is slideshow2.swf

    Here is the XML file we are using: 2gallery_xml2

    <?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='<?php echo $_GET['slideshow_id']; ?>'"} 
    
    {exp:gallery:entries gallery="gallery" category="<?php echo $_GET['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/images/gallery/{cat_folder}/{filename}.jpg">http://www.buildinggoodness.org/images/gallery/{cat_folder}/{filename}.jpg</a>
    {/entries}
    </album>
    {/exp:gallery:entries}
    
    {/exp:query}
    </gallery>

    Here is the embed code that is entered into the custom field in each entry:

    <div align="center" id="flashcontent">
    [removed]// <![CDATA[
    var fo = new SWFObject("http://www.buildinggoodness.org/images/slideshow2.swf", "foo", "550", "400", "9", "#FFFFFF");
    fo.addVariable("xmlfile", "http://www.buildinggoodness.org/index.php/projects/xml_gallery_with_parameter/?slideshow_id=16");
    fo.addParam("scale", "exactfit");
    fo.addParam("menu", "false");
    fo.write("flashcontent");
    // ]]>[removed]
    </div>

    Where slideshow_id = the number of the Photo Gallery Module album category.

    You can see examples of the working slideshow on this page:
    http://www.buildinggoodness.org/index.php/projects/current_project/tribal_house/

    And any page listed as a current project or completed project.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases