Ver 2.1.1
js_thumb - not defined - tinnyVer 2.1
Thumbnail ControlNav Pattern - thanks to @got 2 doodleCarousel Slider as NavigationVer 2.0 -- upgrade flexslider to ver 2.0; -- code changes as per suggestion by clem & extj, thx;
Looking around for a good slider widget, ends up with FlexSlider. Here is quote from the site:
Flexslider An awesome, fully responsive jQuery slider plugin.
XFlexSlider is a wrapper widget which allow Yii-er to have nice slider with easy. It supports sliding image - local or remote, html content from view, take a look you won't be disappointed.
unzip content xflexslider.zip to /protected/extensions/
it also comes with a full yii scaffold site with xflexslider demo on homepage.
in your view file
$this->widget('ext.xflexslider.XFlexSlider',array( 'slides'=>array( //use content 'slide1' => array( 'id'=>'slide1', 'caption'=>'Captions and cupcakes. Winning combination.', 'content'=>'<img src="' . Yii::app()->request->baseUrl . '/images/demo-stuff/inacup_samoa.jpg" />', ), //use view 'slide2'=>array( 'caption'=>'This image is wrapped in a link!', 'view'=>'_slide2', ), ), 'flexsliderOptions'=>array( // 'animation' => "'slide'", // 'slideDirection' => 'vertical', 'mousewheel' => true, ), ));
demo from original plugin (removed)
Total 8 comments
Thats work. Just add an option:
That's must be in doc's. Enjoy.
Still cannot use this with thumbs. What can I do?
Modify the extension renderSlides function
Set up the data like this
doodle
It appears that it is not supporting thumbnail navigation? Or am I missing something?
doodle
Thanks a lot for this extension! very usefull.
FlexSlider V2 is here! No many changes... juste replace the js file in your archive.
I changed the line
by
Now we can use callback function like:
I find two errors in this file.
First, if any value of flexsliderOptions is false, like this:
In line
Value of false = ''. And it take error in JS. I solved it:
Next, IE7 expects param after last ',' and take error. My solution:
Edit your XFlexSlider.php like this.
hi, peter
thanks for the finding, original site of this plugin has changed their website so the demo page is not available anymore.
however, you could still download xflexslider-demo-site.zip, it's yii scaffold site with this extension demo installed. i did mine in windows xampp, so you may want to adjust yii path in your index.php file if you using linux or others.
i have removed the original demo link from this page, sorry about that. i guess i need host a demo myself or maybe Qiang and team want provide us a playground here, ;-)
-rb
hi root beer,
the demo link cannot be opened. is that something wrong?..
Leave a comment
Please login to leave your comment.