WebsiteBaker Support (2.8.x) > Templates, Menus & Design

New template: Multiflex-3

<< < (10/16) > >>

Ruud:
Found the problem.

You cannot use a submenu on the last menu item.


--- Code: ---         
<?php show_menu2(1, SM2_ROOT, SM2_ALL,SM2_ALL,&#39;<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]-->}]&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); ?>

--- End code ---

The condition for menu-last will add the extra </li></ul>.
So a page that has both menu-expand and menu-last in the generated class will go wrong.

The simple solution is therefore: don't use submenu's on the last menu. Just think of something more to show on your website. :-P

Ruud

bueno:
Thanks RuudE!
I can move around some items in the navigation so that the submenu is not part of the last main menu item.
I'l try to add extra conditions to the the last if-statement to prevent the extra </li></ul>.
I'll let you guys know what my findings are.

Cheers,
Bueno

chipmandoo:
Hi, I am using 2.6.7 with the menu2 code snippet installed. When I try and install this template I get the error message 'The file you uploaded is invalid'.

The folder structure is intact, and I am uploading the zip etc.

Any clues?

ruebenwurzel:
Hello,


--- Quote ---The file you uploaded is invalid
--- End quote ---

This message is displayed when you try to install f.e a Template as Modul.

Matthias

Argos:
To solve the problem with the menu, just use the menu of the ALLCSS2 template. Copy the menu part from the index.php and the CSS file from the ALLCSS2 template into the Multiflex template. Also copy the file csshover.htc from the ALLCSS2 folder into the Multiflex folder. This is a small file needed for IE6, otherwise it won't show the sub menus.

Style the CSS of the menu so that it fits the Multiflex style. Maybe I'll post that info later myself.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version