<ul class="menu-top"> <li class="menu-sibling menu-first">...</li> <li class="menu-expand menu-current menu-last">... <ul class=""> <li class="menu-child menu-first menu-last">...</li> </ul> </li></ul>
Hello,just released show_menu2 version 4.60 which includes the page_id = 0 bug fix from Brofield on the addons repository.If your menu disappears after submitting a search, follow the steps below (requires show_menu2 v4.60 or higher)Step 1: Add the following input field to the database search settings after the <form> open tag: WB Backend -> Settings -> Show advanced settings -> Search Settings -> HeaderCode: [Select]<input type="hidden" name="referrer" value="[REFERRER_ID]" />Step 2: In the index.php of your template, add the following input field immediately following the search <form> open tag.Code: [Select]<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID')?REFERRER_ID:PAGE_ID;?>" />Brofield thanks for this bugfix.Regards Christian
<input type="hidden" name="referrer" value="[REFERRER_ID]" />
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID')?REFERRER_ID:PAGE_ID;?>" />
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM|SM2_PRETTY);
Manually install it. take a copy of the existing modules/show_menu2 directorydelete all of the filesunzip the show_menu2.zip file copy all of the files into the modules/show_menu2 directoryB
echo'<h3>Categories</h3>';echo'<div style="border-width:0px;">';show_menu2(0, SM2_CURR+1, SM2_ALL, SM2_ALL|SM2_CURRTREE);echo'</div>';
[DESCRIPTION]
show_menu2(0, SM2_CURR+1, SM2_ALL, SM2_ALL|SM2_CURRTREE|SM2_ALLINFO);
The lack of classes on the ul tag is normal. It has always been this.
<td id="nav"><?php show_menu2( $aMenu = 0, $aStart = SM2_ROOT, $aMaxLevel = SM2_ALL, $aFlags = SM2_ALL, $aItemOpen = '<li class="[menu_title] [class] lev[level]">[a][menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '[ul]', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false ); ?></td>
#nav li { display: inline; position: relative;}#nav ul li.lev0 { padding-left: 10px; padding-right: 10px;}#nav li.menu-current { background-color: #C0C0C0;}#nav li:hover { background-color: #C0C0C0;}#nav a { color: black; text-decoration: none;}.1 { vertical-align: middle;}#nav ul li { position: relative;}#nav ul ul { display: none; position: absolute;}#nav ul ul ul { display: none; position: absolute; left: 100%; top: 0; width: 100%;}#nav ul ul,#nav ul li:hover ul ul,#nav ul ul li:hover ul ul{display: none;}#nav ul li:hover ul,#nav ul ul li:hover ul,#nav ul ul ul li:hover ul{display: block;}#nav ul li:hover ul { display: block; font-size: small; /*border: 1px solid black;*/ background-color: #C0C0C0; width: 90px; filter: Alpha(Opacity=70, FinishOpacity=75, Style=1, StartX=1, StartY=1, FinishX=20, FinishY=20); opacity: 0.7; moz-opacity: 0.7;}#nav ul ul li:hover ul { display: block; position: absolute; /*left: 600px; top: 0;*/ /*left: 195%;*/ /*margin-top: -30px; margin-right: -100px;*/ font-size: small; /*border: 1px solid black;*/ background-color: #C0C0C0; width: 90px; filter: Alpha(Opacity=90, FinishOpacity=95, Style=1, StartX=1, StartY=1, FinishX=20, FinishY=20); opacity: 0.9; moz-opacity: 0.9;}#nav ul li.About:hover ul { left: 0px; margin-top: 28px;}#nav ul li.Studio:hover ul { left: 0px; margin-top: 28px;}#nav ul ul li.Classes:hover ul { left: 90px; margin-top: 0px;}#nav ul ul li.Calendar:hover ul { left: 90px; margin-top: 0px;}#nav ul ul li { list-style: none; background-image: none; }#nav ul ul li:hover { background-color: #FFFFFF;}#nav ul ul li a { border-top: 1px solid #C0C0C0; border-bottom: 1px solid #C0C0C0; text-indent: -40px; text-align: left; list-style: none; background-image: none; display: block; }#nav ul ul li a:hover { background-color: #FFFFFF; border-top: 1px solid #990000; border-bottom: 1px solid #990000; margin-left: -40px; text-indent: 0px; display: block; filter: Alpha(Opacity=120, FinishOpacity=125, Style=1, StartX=1, StartY=1, FinishX=20, FinishY=20); opacity: 1.2; moz-opacity: 1.2;}#nav ul li.menu-expand { background-image: url(http://fladance.org/beta/media/down-arrow-sm.png); background-repeat: no-repeat; background-position: right;}#nav ul ul li.menu-expand { background-image: url(http://fladance.org/beta/media/right-arrow.gif); background-repeat: no-repeat; background-position: right;}