WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: gila on October 07, 2009, 03:27:00 PM

Title: show menu2 error in search page
Post by: gila on October 07, 2009, 03:27:00 PM
hi, i use this code to show the menu

Code: [Select]
<?php 
if (SHOW_MENU) { 
// navigation menu
show_menu2(0SM2_ROOT+1);
?>


and it works fine, except in the search result page where it show ererypage of every level :?

this is the form i use to perform the search:
Code: [Select]
<form name="search" id="search" action="<?php echo WB_URL?>/search/index.php" method="get">
<input type="hidden" name="referrer" value="<?php echo defined(&#39;REFERRER_ID&#39;) ? REFERRER_ID : PAGE_ID; ?>" /><span class="titolo3"><?php echo $TEXT[&#39;SEARCH&#39;]; ?></span><br/>
<input name="string" type="text" value="" />
<a href="#" onClick="document.search.submit();" style="vertical-align:bottom;" alt="<?php echo $TEXT[&#39;SEARCH&#39;]; ?>"><img src="<?php echo TEMPLATE_DIR?>/img/vai.png" /></a>
</form>

in the settings section i selected the usual template i use in the whole site, so what can i do?