Hi,
if I have multiple menus declared in info.php like
$menu[1]='Top';
$menu[2]='Engine';
$menu[3]='Chassis';
How can I print out the menu string.
for example I was hoping that something like
<?php echo $menu[2] ?>
<?php show_menu2(2, SM2_ROOT, SM2_ALL, SM2_ALL,false, "\n</li>", false, false, false, '<ul class="suckerfish">');?>
<?php echo $menu[3] ?>
<?php show_menu2(3, SM2_ROOT, SM2_ALL, SM2_ALL,false, "\n</li>", false, false, false, '<ul class="suckerfish">');?>
would produce something like
Engine
Cast lite Piston Kits
Forged Piston Kit
Gasket sets
Valve stem seal kits
Individual Gaskets
Chassis
Wheels
Tanks
etc etc
any ideas, sure its not that hard....
Hi,
Quote from: dazz on August 16, 2012, 12:56:00 PM
How can I print out the menu string.
not sure what you are talking about, assuming you mean the menu name / title.
Quoteany ideas, sure its not that hard....
that's fine so you can do it by yourself :-D or want to try something like this in your templates index.php:
<?php require_once("info.php"); echo $menu[2];?>
and don't forget the semicolons.
regards
thank marmot
Dazz