Loading...
 

Bootstrap Components Navbar

Bootstrap Default Navbar

<div class="navbar navbar-default">
                <div class="container">
                  <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Brand</a>
                  </div>
                  <div class="navbar-collapse collapse navbar-responsive-collapse">
                    <ul class="nav navbar-nav">
                      <li class="active"><a href="#">Active</a></li>
                      <li><a href="#">Link</a></li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                          <li><a href="#">Action</a></li>
                          <li><a href="#">Another action</a></li>
                          <li><a href="#">Something else here</a></li>
                          <li class="divider"></li>
                          <li class="dropdown-header">Dropdown header</li>
                          <li><a href="#">Separated link</a></li>
                          <li><a href="#">One more separated link</a></li>
                        </ul>
                      </li>
                    </ul>
                    <form class="navbar-form navbar-left">
                      <input type="text" class="form-control col-lg-8" placeholder="Search">
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                      <li><a href="#">Link</a></li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                          <li><a href="#">Action</a></li>
                          <li><a href="#">Another action</a></li>
                          <li><a href="#">Something else here</a></li>
                          <li class="divider"></li>
                          <li><a href="#">Separated link</a></li>
                        </ul>
                      </li>
                    </ul>
                  </div><!-- /.nav-collapse -->
                </div><!-- /.container -->
              </div><!-- /.navbar -->

Bootstrap Inverse Navbar

<div class="navbar navbar-inverse">
                <div class="container">
                  <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Brand</a>
                  </div>
                  <div class="navbar-collapse collapse navbar-inverse-collapse">
                    <ul class="nav navbar-nav">
                      <li class="active"><a href="#">Active</a></li>
                      <li><a href="#">Link</a></li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                          <li><a href="#">Action</a></li>
                          <li><a href="#">Another action</a></li>
                          <li><a href="#">Something else here</a></li>
                          <li class="divider"></li>
                          <li class="dropdown-header">Dropdown header</li>
                          <li><a href="#">Separated link</a></li>
                          <li><a href="#">One more separated link</a></li>
                        </ul>
                      </li>
                    </ul>
                    <form class="navbar-form navbar-left">
                      <input type="text" class="form-control col-lg-8" placeholder="Search">
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                      <li><a href="#">Link</a></li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                          <li><a href="#">Action</a></li>
                          <li><a href="#">Another action</a></li>
                          <li><a href="#">Something else here</a></li>
                          <li class="divider"></li>
                          <li><a href="#">Separated link</a></li>
                        </ul>
                      </li>
                    </ul>
                  </div><!-- /.nav-collapse -->
                </div><!-- /.container -->
              </div><!-- /.navbar -->

Tiki Menu (bootstrap=navbar)

{module module="menu" id="47" type="horiz" nobox="y" bootstrap="navbar"}

Tiki Menu (bootstrap=basic)

{module module="menu" id="47" type="horiz" nobox="y" bootstrap="basic"}

Tasks (TBD):

  • The menu system is to be converted to use this navbar - partially done (LPH)
  • The search module needs to take the bootstrap classes
  • Right now the search functionality is a separate module and is not integrated into the menu itself? Do we integrate it? We can envisage a new navbar module that nests menus and also the search, and also the "Brand" (which is something that does not exist in Tiki).
    The original Bootstrap Navbar has a title with link and can nest two menues, a searchbar and maybe arbitrary (smarty plugins?) elements.
    Thus it should be rather better to write a new "Module Navbar" instead of recoding the "Module Menu" (not referring to the "smarty plugin/function menu".

Issues

  • Responsive functionallity only works until breakpoint - the Tiki menu does not have all the elements which are required for the responsive bootstrap navbar.
  • Input placeholder does not work in IE9 and older. see http://stackoverflow.com/questions/13270219/placeholders-are-not-displaying-in-ie8-for-bootstrap This affects the search bar default text...
  • Right now, it is hardcoded that the menu module to use bootstrap=basic by position (left) and the topbar (bootstrap=navbar). This is just temporary implementation.
    • Need better sensible defaulting, if bootstrap is on, it should be everywhere bootstrap.
    • The different options for bootstrap variable need to be easily settable somewhere basic or navbar.
    • Consider what happens if css=y is set, a lot of sites have this as they used the CSS (suckerfish) menus before- what is the smoothest upgrade? backward support vs replace with bootstrap completely? What about the old menus that have the little folder icon?
  • There does not seem to be any default boxing styles for menu items right now, is this correct? Perhaps it is intentional as the style might be defined based on the container of the menu, not the menu itself.

Page last modified on Wednesday 20 of November, 2013 15:33:54 GMT

Switch Theme

Layout

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Site Config