You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's all folks! :] Sorry, but due to high time pressure, I'm unable to create commit myself and prepare pull request for you. You'll have to merge this with your code yourself, if you're willing to extend Bootstrap Carousel with link-like functionality.
The text was updated successfully, but these errors were encountered:
Hello @trejder
Thank you for your issue. Now it is done in master branch and will be included to the next release!
Now you can add links this way:
$this->widget('bootstrap.widgets.TbCarousel', array(
'items' => array(
array(
'image' => 'http://yiibooster.clevertech.biz/images/first-placeholder830x400.gif',
'label' => 'First Thumbnail label',
'caption' => 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.',
// URL as string'link' => 'http://yiibooster.clevertech.biz/',
// Any kind of options for "A' tag'linkOptions' => array(
'title' => 'Yii Booster',
),
),
array(
'image' => 'http://yiibooster.clevertech.biz/images/second-placeholder830x400.gif',
'label' => 'Second Thumbnail label',
'caption' => 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.',
// You can specify URL like for 'redirect' function of controller'link' => array('site/index', 'param1' => 'value1'),
),
),
));
Adding this:
in line
152
ofTbCarousel.php
and this:in line
184
would let you use Bootstrap Carousel with links -- i.e. make each image clickable.Link can be given as just string (only URL, passed to
href
):or as an array, where you specify each
<a>
tag's attributes by yourself:That's all folks! :] Sorry, but due to high time pressure, I'm unable to create commit myself and prepare pull request for you. You'll have to merge this with your code yourself, if you're willing to extend Bootstrap Carousel with link-like functionality.
The text was updated successfully, but these errors were encountered: