Third Level Subnav Split Menu
Posted: Sat Feb 25, 2012 10:07 am
Hi, I'm trying to get the third level menu to show up in a Split Menu. In my template I have this code:
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:
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
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; ?>
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; ?>
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