WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multilanguage site: submenu dissapears after search #SOLVED#
doc:
Hello,
this is what we are using on the multilingual WB Help project site for the left navigation menu:
--- Code: ---<?php
show_menu2(0, SM2_ROOT+1, SM2_START+1, SM2_TRIM|SM2_PRETTY, '<li><a ' ."[if(class=menu-current){class=\"menu_current\" }]" .'href="[url]" target="[target]">[menu_title]</a>', "</li>", "<ul>","</ul>", false, '<ul>');
?>
--- End code ---
Regards Christian
Boudi:
Thank you Christian,
But what I see now in the HELP section is exact the same thing as my problem: choose a language, watch the menu on the left, do a search and the menu dissapears. And that's my issue all this time. I would like the menu to stay intact when I do a search.
Sincerley
Knert.
doc:
Hello,
uups you are right, forgot that we have switched to show_menu2.
You can write a feature request in the Code Snippets thread (search for show_menu2) or you could send a PM to brofield, the author of show_menu2 and ask if he can provide a fix for the page_id == 0 problem coming along with the WB search feature.
Regards Christian
Boudi:
So after all it was not my fault :roll:
I sent Brofield a PM. I hope he is able to fix this issue.
When there's a fix I'll let it know.
Sincerley
Knert
brofield:
Have you added the referrer field to the search settings page as stated here:
http://projects.WebsiteBaker.org/websitebaker2/ticket/327
1. Settings
2. Show advanced settings
3. Find the Search Settings -> Header
4. add this input field immediately following the <form> open tag
<input type="hidden" name="referrer" value="[REFERRER_ID]" />
It all works for me at sm2test. See a sample search here...
http://code.jellycan.com/sm2test/search/index.php?string=foo&submit=Search&referrer=5
There may be more to it depending on the multilanguage stuff you are doing.
Brodie
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version