Modded vc_javascriptslideshow
Friday, June 15th, 2007I’ve modified the TYPO3 extension vc_javascriptslideshow from ground up. The vc_javascriptslideshow is a javascript/css based slideshow that flips images and I needed to be able to control it fully from TS. That ended up in adding a few extras as well.
The extension now includes
- added full support for TS configuration
- added support for multiple slideshows on one page
- Added settings for border and background for the slideshow (stylesheet settings on a surrounding div)
- Changed the file rezise to use IMG_RESOURCE instead of custom exec of IM and now use width/height attributes there. This makes it also possible to define w/h as ie 200m or 200c for cropping or relative resize (see the static ts template).
- added support to (in TS only so far) define a path from where all images should be taken.
TypoScript example setup, included via TV element:
-
-
lib.topBanner < plugin.tx_vcjavascriptslideshow_pi1
-
-
lib.topBanner {
-
//specify path from where to fetch images
-
imagesPath = fileadmin/bilder/banners/
-
//..or a use a specified list of images
-
// imagesList = Vinter.jpg,Solnedgang.jpg
-
altText = informationsruta
-
imageWidth = 500
-
imageHeight = 70c
-
//override imagesList to fetch all images
-
getAllFromPath = 1
-
//number of millisecond for each transition
-
msTransitionDelay = 140
-
//background color for slider space
-
#backgroundColor = #ccc
-
//a possible border if you like
-
borderSize = 0
-
}
-
The extension probably contains some bugs, but works for my purpose. I will try to add some documentation soon.
I have e-mail the original author hoping that he will include it in the official release. Otherwise I’ll probably add a new ext.. (*hrhr*).
Download the modified ext. (unpack, upload and update ext in EM).