WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Klimentiy on March 18, 2016, 07:47:48 PM

Title: template AdventureStrap Light menu
Post by: Klimentiy on March 18, 2016, 07:47:48 PM
 Hi! Help with a problem in the template AdventureStrap Light. I need when clicking on the 0 level of the menu opens the page. Here is the code menu.
Thanks to everyone who helped.

<!-- **********************************************************
            NAVIGATION
            ************************************************************ -->
            <nav class="navbar navbar-default">
                <div class="container">
                    <div id="navbar" class="navbar-collapse collapse">
                        <?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL | SM2_ALLINFO, '<li class="[if(class=menu-current||class=menu-parent){active}] [if(class==menu-expand&&level==0){dropmenu}] [if(level==0){color-random}] [if(class==menu-expand&&level==1){dropdown-submenu}]">[if(class==menu-expand){<a href="[url]">[menu_title] <i class="fa fa-caret-down"></i></a>}else {<a href="[url]">[menu_title]</a>}]', '</li>', '<ul class="[if(level==0){nav} else {dropdown-menu}]">', '</ul>', false, '<ul class="nav navbar-nav navbar-left">') ?>
                    </div><!-- /#navbar -->
                </div><!-- /.container -->
            </nav>
Title: Re: template AdventureStrap Light menu
Post by: instantflorian on March 18, 2016, 08:16:23 PM
The concept of this template is: Create Menu Link objects on the first level of your site which link to the content pages on the 2nd level. Otherwise you will not succeed with this template.