WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multi menus
(1/1)
dazz:
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
--- Code: ---
<?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">');?>
--- End code ---
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....
marmot:
Hi,
--- Quote from: dazz on August 16, 2012, 12:56:00 PM ---How can I print out the menu string.
--- End quote ---
not sure what you are talking about, assuming you mean the menu name / title.
--- Quote --- any ideas, sure its not that hard....
--- End quote ---
that's fine so you can do it by yourself :-D or want to try something like this in your templates index.php:
--- Code: ---<?php require_once("info.php"); echo $menu[2];?>
--- End code ---
and don't forget the semicolons.
regards
dazz:
thank marmot
Dazz
Navigation
[0] Message Index
Go to full version