Twitter Bootstrap Navigation Tabs With Autonav
Permalink 1 user found helpful<ul class="tabs"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Profile</a></li> <li><a href="#">Messages</a></li> <li><a href="#">Settings</a></li> <li><a href="#">Contact</a></li> <li class="dropdown" data-dropdown="dropdown"> <a href="#" class="dropdown-toggle">Dropdown</a> <ul class="dropdown-menu"> <li><a href="#">Secondary link</a></li> <li><a href="#">Something else here</a></li> <li><a href="#">Another link</a></li> </ul> </li> </ul>
Any suggestions?
I had the same problem but managed to figure it out (not sure its the best way, but it works for me) using code from http://www.packtpub.com/article/concrete5-mastering-autonav-for-adv...
Put this in your www_root/blocks/autonav/view.php file
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); // get the list of all pages matching the selection $aBlocks = $controller->generateNav(); $nh = Loader::helper('navigation'); echo("<ul class=\"nav\">"); // loop through all the pages foreach($aBlocks as $ni) { $_c = $ni->getCollectionObject(); // get the level of the current element. // This is necessary to create the proper indentation. $thisLevel = $ni->getLevel(); // the current page has a higher level than the previous // page which means that we have to print another UL // element to indent the next pages
Hope it helps. If anyone can improve it please do so :-D
http://www.concrete5.org/community/forums/customizing_c5/new-cleane...
and
http://www.concrete5.org/documentation/how-tos/developers/change-th...
for a starting point on how to override the default.