1 2014-01-22 17:44:08

Topic: Drop Down Menu

Hi is it possible to create Drop Down menu in navbar? since cannot sems to find such function inside admin area hmm i have tried around on menu area but nothing creates drop down menu.

Re: Drop Down Menu

You can use code that is in nakome theme#1 or theme#2

<div class="subnavbar">
    <div class="subnavbar-inner">
        <div class="container">
            <ul class="mainnav">
                <li class="dropdown subnavbar-open-right">                    
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-home"></i>
                        <span><?php echo __('Content', 'pages'); ?></span>
                        <b class="caret"></b>
                    </a>    
                    <ul class="dropdown-menu">
                        <?php Navigation::draw('content'); ?>
                    </ul>                    
                </li>
                <?php if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) { ?>
                <li class="dropdown subnavbar-open-right">                    
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-cog"></i>
                        <span><?php echo __('Extends', 'system'); ?></span>
                        <b class="caret"></b>
                    </a>    
                    <ul class="dropdown-menu">
                        <?php Navigation::draw('extends'); ?>
                    </ul>                    
                </li>
                <li class="dropdown subnavbar-open-right">                    
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-warning-sign"></i>
                        <span><?php echo __('System', 'system'); ?></span>
                        <b class="caret"></b>
                    </a>    
                    <ul class="dropdown-menu">
                        <?php Navigation::draw('system'); ?>
                    </ul>                    
                </li>
                <?php } ?>
            </ul>
        </div> <!-- /container -->
    </div> <!-- /subnavbar-inner -->
    </div> <!-- /subnavbar -->

Without any CSS it will be look like:
http://i.imgur.com/Oo3gJGz.png with default bootstrap config