silverstripe-flexslider (1.0.1)
silverstripe-flexslider is a module for Silverstripe 3.0 that uses the FlexSlider 2 library to create sliders. Sliders can be created from within the cms or by instantiating a new FlexSlider object in php.
1.0.0 initial version
Requirements
- Silverstripe 3.0
You can download this module for free and we are happy & proud if you're using it. Just remember that it takes time developing this stuff and you might encourage us developing some more tools by sharing a very few bucks.
Documentation
Installation
Installation finished
Creating a Slider in the cms
This needs some explanation:
$FlexSlider(1,800,470) means:
- Show the slider with the id=1
- Crop-resize all images to 800x470
The problem is, that the slider will not look good, if the images have not the same aspect ratio. And you do not know if the admin will upload just images with the same aspect ratio.
That is why we are crop-resizing all images. By resizing the images we can also make sure, that the slider will not slide 2MB image files.
Maybe you need to play a little bit with the values for width and height to get a good result.
But setting width to 800 and height to 470 in this example has no effect on the slider itself. The slider will use all available space (width=100%). So thats why we added a wrapping div with a width of 60%.
The cool thing is, that the flexslider is perfectly responsive (which fits perfectly to the simple theme)
Using shortcodes
As you can see the one that was added with a shortcode has a style="width: 400px". So unlike the other one, it doesn´t scale.
The reason i did that is because the admin is usually not able to specify a width in the wysiwyg himself.
But this behaviour might change in the next version, because this slider has now lost its responsiveness.
Creating a slider from existing DataLists
coming soon
Changing the layout of the slider
coming soon


For comments, suggestions, and asking for features please use this forum thread.