Page 1 of 1

Third Level Subnav Split Menu

Posted: Sat Feb 25, 2012 10:07 am
by Sxebtu
Hi, I'm trying to get the third level menu to show up in a Split Menu. In my template I have this code:

Code: Select all

<?php if ($tmpTools->getParam('ja_menu') != 'none') : ?>
     <div id="ja-mainnav">
           <?php if ($jamenu) $jamenu->genMenu (0); ?>
     </div>

            <?php if ($hasSubnav) : ?>
            <div id="ja-subnav" class="clearfix">
                 <?php if ($jamenu) $jamenu->genMenu (1,1);	?>
            </div>

           <?php endif; ?>

<?php endif; ?>
This way, it doesn't show up third level menus. So I figured I added another if inside the previous if, making the code like this:

Code: Select all

<?php if ($tmpTools->getParam('ja_menu') != 'none') : ?>
     <div id="ja-mainnav">
           <?php if ($jamenu) $jamenu->genMenu (0); ?>
     </div>

            <?php if ($hasSubnav) : ?>
            <div id="ja-subnav" class="clearfix">
                 <?php if ($jamenu) $jamenu->genMenu (1,1);	?>
            </div>

                       <?php if ($hasSubnav) : ?>
                       <div id="ja-subnav" class="clearfix">
                              <?php if ($jamenu) $jamenu->genMenu (2,2);	?>
                       </div>
            
                     <?php endif; ?>
          
             <?php endif; ?>

 <?php endif; ?>
This way I actually got the third level menu to show up, but it shows up automatically along with the second level once I clicked on the first level menu, while technically it should show up only when I click on the second level menu.

I'm not a PHP genius so I might have done something wrong with the code, is there any one that knows what to do to fix it?

Thanks in advance