WebsiteBaker Support (2.8.x) > Templates, Menus & Design
New template: Multiflex-3
Eki:
Hi all,
When porting the template to WB, I came accross the same problem, but couldn't fix it any more with the conditional statements that are in the show_menu2() function in the file index.php of the template. I wanted the template to work in FF as well as IE (6 and 7), but got it to work only for 1 sub-menu.
The original template also contains some conditional statements, but I was having troubles converting it to one show_menu2() statement. I may have a look at it in the future, but I am very busy at the moment, so it won't be done before the year-end. Maybe anyone else is able to do so.
regards,
Erik
mysticfreeman:
cheers Eki..
i have been back and forth with it and i simply cannot get it to work with all browsers.. at present i am thinking about only making it one sub-level like you stated and creating a new menu level elsewhere..
hope someone can place the nail on the head of this problem as its a lovely template
powderbomber:
had trouble with dropdowns so I poached some code from the other version of the multiflex template thats available.
in the index.php i replaced this:
--- Code: ---<!-- Navigation item -->
<ul>
<?php show_menu2(1, SM2_ROOT, SM2_ALL,SM2_ALL,'<li>[a][menu_title]
[if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
[if(class!=menu-expand){</a>}]
[if(class!=menu-last){</li>}]
[if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]','','',''); ?>
</ul>
--- End code ---
with this:
--- Code: ---<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_PRETTY, '<li [if(class==menu-current){id="menu-current"}]>[a][menu_title]</a>'); ?>
--- End code ---
and that sorted it, though I havent tested it on all browsers.
powderbomber:
now ive tested it and it doesnt work on ie6 surprise surprise...
the best ive been able to do is this:
--- Code: ---<!-- Navigation Level 2 (Drop-down menus) -->
<div class="nav2">
<ul>
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_PRETTY,'[li][a][menu_title]
[if(class==menu-expand){<!--[if IE 7]></a><![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}]
[if(class!=menu-expand){</a>}]
[if(class!=menu-last){</li>}]
[if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]
','','','','',''); ?>
</ul>
</div>
--- End code ---
this works on all browsers - 1 issue ive come across - if you have submenus on the last top level menu, it breaks. However if you make sure your last top level menu has no submenus attached, youll be fine. Tried for hours to sort it out with no luck!
DGEC:
FYI, Multiflex-4 is out (from www.1234.info)
Also, someone might want to notify the author that there's a WB conversion so he can add WB to his CMS list.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version