000-CMS
avatar dougransom
dougransom
15 Feb 2014

Use a module to display both a top-level menu, and a submenu on certain pages.

The submenu doesn't get the 'class = active' set on the right item. Instead it is set for the parent item (which is also in the child menu). In this case both "investment solutions" on the main menu and "Goals Based Investing" on the child menu refer to the same article.

In this example the user has selected "Portfolio Construction" but in the menu Goals Based Investing is highlighted instead.

investment_solutions-5
portfolio_construction-4

Based on using a templated that is a tweaked protostar template.

here are the two menus html:

                        <nav class="navigation" role="navigation">
                <ul class="nav menu    nav-pills">
<li class="item-101"><a href="/" >Home</a></li><li class="item-112 current active deeper parent"><a href="/investmentsolutions" >Investment Solutions</a><ul class="nav-child unstyled small"><li class="item-132 active"><a href="/investmentsolutions" >Goals Based Investing</a></li><li class="item-128"><a href="/investmentsolutions/portfolio-construction" >Portfolio Construction</a></li><li class="item-129"><a href="/investmentsolutions/investment-cowards" >Investment Cowards</a></li><li class="item-130"><a href="/investmentsolutions/bold-investors" >Bold Investors</a></li><li class="item-131"><a href="/investmentsolutions/business-owners" >Business Owners</a></li></ul></li><li class="item-105"><a href="/productsandservices" >Products and Services</a></li><li class="item-102"><a href="/contact" >Contact</a></li><li class="item-106"><a href="/client-login" >Client Login</a></li><li class="item-108"><a href="/bio" >Bio</a></li><li class="item-120"><a href="/ias" >Industrial Alliance Securities Inc.</a></li></ul>

            </nav>

and


<div class="moduletable_menu">
                    <h3>Investment Solutions</h3>
                    <ul class="nav menu nav-pills">
<li class="item-132 active"><a href="/investmentsolutions" >Goals Based Investing</a></li><li class="item-128"><a href="/investmentsolutions/portfolio-construction" >Portfolio Construction</a></li><li class="item-129"><a href="/investmentsolutions/investment-cowards" >Investment Cowards</a></li><li class="item-130"><a href="/investmentsolutions/bold-investors" >Bold Investors</a></li><li class="item-131"><a href="/investmentsolutions/business-owners" >Business Owners</a></li></ul>
        </div>
avatar dougransom dougransom - open - 15 Feb 2014
avatar dougransom
dougransom - comment - 15 Feb 2014

here is system information:

System Information
Setting Value

PHP Built On Linux box503.bluehost.com 3.4.79-20140208.1.bh6.x86_64 #1 SMP Sat Feb 8 12:29:59 EST 2014 x86_64
Database Version 5.5.36-log
Database Collation utf8_general_ci
PHP Version 5.4.24
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.1.5 Stable [ Ember ] 01-August-2013 14:00 GMT
Joomla! Platform Version Joomla Platform 12.2.0 Stable [ Neil Armstrong ] 21-September-2012 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36

avatar elkuku
elkuku - comment - 15 Feb 2014

Hi

This repository is for the Joomla! Issue Tracker application. Your issue pertains to the Joomla! CMS, please report your issue at https://github.com/joomla/joomla-cms/issues/new

Thanks!

BTW Very nice issue report ?

avatar elkuku elkuku - change - 15 Feb 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-02-15 20:18:45
Labels Added: 000-CMS
avatar elkuku elkuku - close - 15 Feb 2014

Add a Comment

Login with GitHub to post a comment