demisjohn
Forum Replies Created
-
Forum: Plugins
In reply to: [Slideshow] Different Slideshows for Different Pages into TemplateThat’s a pretty complex request I think.
Theslideshow
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 12And 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() ] ); ?>
Wherethe_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
.
(Ifthe_shortlink()
isn’t found in theLookUpTable
I think you’ll get an error.)Say, that’s just an untested guess – give it a shot!
Forum: Plugins
In reply to: [Slideshow] Possible to add directly to template?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.Forum: Reviews
In reply to: [News Manager] Has Potentiallooks 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.Forum: Plugins
In reply to: [Slideshow] [Plugin: Slideshow] Reduce the height of the description boxI 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 )