Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s a pretty complex request I think.
    The slideshow plugin has no way to know which slideshow should go on which page – you have to code that decision yourself.

    I think you’d need to make your own look-up-table, that says

    Page SlideShow_ID
    about-us 14
    about-them 25
    contact 12

    And do the look-up yourself (via PHP code in your template) to figure out which slideshow ID should be on which page.

    Possibly the easiest/fastest way to store the lookup table is as a static variable in the template.php file itself.

    So there’d be a variable something like:
    $LookUpTable = array( 'about-us' => '14', 'about-them' => '25', 'contact-us' => '12' )

    And then make your slideshow deploy code be something like:
    <?php do_action('slideshow_deploy', $LookUpTable[ the_shortlink() ] ); ?>
    Where the_shortlink() returns the short-link (eg. ‘about-us’) for the current page. That shortlink should match one of the keys in the $LookUpTable variable you created, and the code $LookUpTable[ the_shortlink() ] will be replaced by the value ’14’, ’25’ or ’12’ when the short-link for the current page matches a key in $LookUpTable.
    (If the_shortlink() isn’t found in the LookUpTable I think you’ll get an error.)

    Say, that’s just an untested guess – give it a shot!

    If you go to Admin > Slideshows > YourSlideShow:
    You’ll see that the first paragraph shows you the <?php...?> code snippet to add to your template to deploy that slideshow.

    looks to me that, by default, it adds a https://mysite.org/news page that lists all the news articles. At least, it did for me. I didn’t have to set it up or anything, it just creates it when installed.

    I was wondering the same thing, as the “Height of the description boxes” option does in fact reduce the height, but then the text is pushed off into being hidden (I think).
    Are there options for the description box padding, font size etc. in the CSS somewhere, on in the Plugin/Slideshow/Edit config somewhere?

    Regardless, this is a fantastic plugin, your hard work really shows with all the customization options and ease-of-use! Thanks! (I also just gave it 5-stars, I’m quite impressed).

    (Slideshow Version 2.1.7 )

Viewing 4 replies - 1 through 4 (of 4 total)