I’m having great difficulties in customizing the markup produced by the extension. For example, I want to create BootMenu tabs with an empty <i></i> next to the label text, in order to show an icon there. We’re using CSS sprites, so just putting the icon as the label background and adding some padding won’t do.
This is not the only occation we had the need to tweak the Bootstrap markup a little bit, and it’s always a bit too difficult, in my opinion: extending classes, overriding low-level functions etc.
Bootstrap is already using CSS sprites to display all Glyphicons. No need to re-invent the wheel here. Check the demo page to find out how to do it. Of course, if you want to use your own sprites and set of icons, you need to overwrite all icon-related styles accordingly or use your very own css classes instead.
Displaying HTML tags inside labels is easy. Just set "encodeLabel" to false:
Wow! Thanks for the both of you, really helpful and quick! Yeah, we want to use our own icons, but also some of bootstrap’s default ones… The ‘encoding => false’ really helps in quite many other things, too!
In my local dev machine (OSX, Yii 1.1.10, MAMP) the dropdown menu works ok but in the development server (Ubuntu 10.04, LAMP, Yii 1.1.10) the dropdownlist is not working.
Error message is Object [object Object] has no method ‘on’
Probably, because of this error CJui dialog is not working (also bootstrap modal window is not). When I remove bootstrap from preload, then CJui dialog is opening corectly.
I am using bootstrap for my backend that sits in a seperate folder (I have two folders - one for frontend, another for backend). Maybe some js or something is not loading correctly for backend folder?
I HAVE SOLVED THIS ISSUE WHEN UPDATED MY YII VERSION.
Thanks for replying, 0.10.1 version, total lost in the dark…after some tests in localhost, even registering manually, it does not work…i’m wondering there must be something wrong with the environment, will try tomorrow in my hosting and post here if it works
Just downloaded the latest 0.10.1, used the carousel from the demo page, and tested it on Yii 0.1.10 and 0.1.11-dev. Carousel’s working fine. Again, no plugin needs to be registered - just 1 bootstrap.min.js.
Are there any error messages in firebug on your side? Do you at least see the carousel or does Yii return whatever widget-related error message? Are you using the demo code (carousel)? Do all the other JS elements of Yii-Bootstrap (still) work?
I need two submit buttons, but both should do submit to different url.
// this button submits to action update and this is fine
$this->widget('bootstrap.widgets.BootButton', array(
'buttonType'=>'submit',
'type'=>'primary',
'label'=>$model->isNewRecord ? 'Create' : 'Save',
));
// i need this button to submit to action confirm and not update, but this doesn't work !!!!!!!!!
$this->widget('bootstrap.widgets.BootButton', array(
'url' => array('confirm', 'id' => $model->id),
'buttonType'=>'submit',
'type'=>'primary',
'label'=>Yii::t('shop', 'Save&Confirm'),
));
Has anyone implemented the bootstrap.widgets.BootTabbable tabs with dynamic content in the tabs using AJAX requests and can hint me in the right direction on how to implement this?
Set it up as normally, then only use the widgets etc in the module. There is nothing that forces you to use it outside of the module even if you install bootstrap normally.
Set it up as normally, then only use the widgets etc in the module. There is nothing that forces you to use it outside of the module even if you install bootstrap normally.