Slideshow module for SilverStripe 3.1 that implements back-end support for slideshows/carousels/sliders. For the sake of demonstration it comes with an plug-and-play example using slick. It can easily be removed without disrupting functionality. More about this further down under the slick heading.
As a general rule of thumb it can be a good idea to back up your database and log into your site as Admin before installing modules, so even though nothing should break, feel free to do so.
cdto your SilverStripe root.
composer require kreationsbyran/kb-slideshow.
KBSlideshow works well together with SortableGridField which allows for drag-and-drop sorting of the slides.
<% include KBSlideshow %> in your SilverStripe template will include the default template. You can easily replace or edit this template.
/templates/includes/KBSlideshow.ss markup ouput âââdiv.kbslideshow (if exists) | âââdiv.kbslide (loop) | âââimg (if exists) | âââh1 (if exists) | âââp (if exists)
The module extends Page and once installed it will create a tab called "Slideshow" in the CMS of all Pages.
"Image rescale width/height" will set the ratio of all slides to width:height if both options are set. If only one is set, the images will be cropped using SilverStripes
Image.SetHeight() functions. If none are set the selected image won't be rescaled or cropped and can result in heavy load. Recommended to set at least one if slideshow contains images.
The module comes bundled with a demonstration using slick. To remove the coupling between the module and slick in order to use a different slideshow/slider/carousel library, simply follow these two steps:
<% include KBSlick %>from
If you wish to keep using slick, you'll find the settings located in
/templates/includes/KBSlick.ss. There is currently no back-end support for managing slick settings but can easily be added by modifying the KBSlideshow class.
Copyright (c) 2015 KreationsbyrÃ¥n Sverige AB
Licensed under the MIT License
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem