Multi menus

dazz


marmot

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

dazz

#1
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(2SM2_ROOTSM2_ALLSM2_ALL,false"\n</li>"falsefalsefalse'<ul class="suckerfish">');?>

<?php echo $menu[3?>    
<?php show_menu2(3SM2_ROOTSM2_ALLSM2_ALL,false"\n</li>"falsefalsefalse'<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....