Not sure if this is a bug but after several hours I’ve managed to figure out why the navigation collapse isn’t working on some pages. It’s related to the bootstrap extension.
I’m using the less extension too so am including the css (core and responsive) in the compiled style.css which seems to be working fine. I’ve set them to false in the config file so they are not included and am registering the style.css manually which again is working fine. Therefore the only settings that are true are the yii css and the js. Their appearing at the top as I would expect but for some reason they are also being included at the top of the content section automatically.
of course, it works for (types) "tabs" and "pills".
No, there’s no “placement” option for BootMenu. BootMenu is a standalone menu (only links - no content), place it where you want and need it. If you need to have it fixed to the top or bottom of the page, put it inside BootNavbar and use the “fixed” option and set it to “top” and “bottom” respectively.
Not quite sure what you are trying to accomplish? An inline sequence of form fields in between a horizontal or vertical form… sounds like it would look weird.
How the form elements are rendered depends on the parent form (type) and you cannot switch back and forth using 1 form element hence widget only; unless you add the inline fields manually. Also, inline form elements do not show any error messages; except the inline search if I’m not mistaken.
Hi Chris! Can you please add the Help Block support in BootActiveForm, textFieldRow() and dropDownFieldRow() and other methods to (optionally) have inline help text for form fields?
Also please add a .well class to the Forms generated via Bootstrap Gii.
How can i contribute to this Yii Bootstrap Extension of yours? Can i commit changes myself rather than bugging you on Forums?Do you have it on Google Code?
Hey Chris thanks for the reply, and hope you are feeling a bit better. (And sorry for my half-ass questioning skills) I am current using a horizontal form, naturally there is a label, and it floats to the left of the control. (I am trying to put 3 textfields such as “country code”,“area code” & “Telephone” together with NO labels for country code and areacode. But the rest of the form I like each control be on it’s on line)
I noticed with inline form, the labels are removed, and the control can float left, how can I remove the label i suppose the question hen becomes, so I can play around with the floating.
Firebug doesn’t show the css class for the element - FAILED
Style is not applied to the element - FAILED
If I insert a new css file directly in the layout, the style gets applied correctly. … how come? the style defined in bootstrap.min.css is not applied, but the same style created in a separated css file is applied? OMG!
Does any of you have an idea or could please give me a hint to solve this? I cannot apply custom styles…
In the progress of picking up Yii as my PHP framework, I decided to use Rights and Bootstrap as my access and GUI extension.
I installed Rights before Bootstrap and somehow, after I installed bootstrap, the Rights’s “revokes” links aren’t working. (other links and rights function are working just fine).
I want to place the popover to the right and I saw in the twitter bootstrap js project, there is a placement parameter which can have the values top,bottom,right, left.
The strange thing is, that it calls the url of the whole page and not the specified one in “ajaxUrl”. Furthermore I do not know how to display the BootModal, as there is no ‘data-toggle’=>‘modal’
Take another look at the online demo for popover, you’re missing the htmlOptions that define the popover. I’m not sure how you can define the position of the popover, maybe with ‘data-placement’?
Just a suggestion, I’d like to have my URL’s in the menu’s with the class ‘active’ even if they are several layers down. For example, a link that points to ‘/customer’ will trigger active on all actions inside customer. Same goes for ‘/customer/index/someOption’ will even trigger ‘/customer/index’ as active.
My explanation is a bit weird, but the working code I have for such behavior is below:
bootstrap.widgets.BootBaseMenu
<?php
/**
* Checks whether a menu item is active.
* @param array $item the menu item to be checked
* @param string $route the route of the current request
* @return boolean the result
*/
protected function isItemActive($item, $route)
{
if (isset($item['url']) && is_array($item['url']) &&
(!strcasecmp(trim($item['url'][0], '/'), $route) ||
strpos($route, ltrim($item['url'][0], '/')) === 0) )
{
...
Only one small change, diff:
protected function isItemActive($item, $route)
{
- if (isset($item['url']) && is_array($item['url']) && !strcasecmp(trim($item['url'][0], '/'), $route))
+ if (isset($item['url']) && is_array($item['url']) && (!strcasecmp(trim($item['url'][0], '/'), $route) || strpos($route, ltrim($item['url'][0], '/')) === 0) )
{
if (count($item['url']) > 1)
foreach (array_splice($item['url'], 1) as $name=>$value)
The function is unknown, not recognized, hence not a function. Where do you put the function? Check if it’s inside a document ready block to ensure it’s not called before jQuery has been loaded.
I’m wondering why you mention the modal works as expected? Are you talking about the rendered html for the modal? And why do you need to set it to “false”? It won’t open by itself anyway.