WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multilanguage site: submenu dissapears after search #SOLVED#
Boudi:
Hello,
I have a question, Is sir Brofield still on this topic, trying to solve it? :-)
Besides that I would like to hear from other multilanguage users if they have this problem or not.
Hope 2 hear from you :-)
Sincerely,
Knert
brofield:
Fixed.
In class.frontend.php, function get_page_details(), add the following line:
// Page ID
define('PAGE_ID', $this->page['page_id']);
+ define('REFERRER_ID', PAGE_ID);
(Note that this change isn't strictly necessary, but I feel that it is better to have it as it makes the necessary template code a little simpler. Simpler is always better. See below)
In Settings -> Show advanced settings -> Search Settings -> Header, add this input field immediately following the <form> open tag.
<input type="hidden" name="referrer" value="[REFERRER_ID]" />
In the template, add the following input field immediately following the search <form> open tag.
<input type="hidden" name="referrer" value="<?php echo REFERRER_ID; ?>" />
If the class.frontend.php is not modified, it can still be done with the code:
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
Upgrade to the latest show_menu2 version 2.6
http://code.jellycan.com/show_menu2/
NOTE: would you please test with these changes and verify for me that it is fixed (I've tested on 2.7 for multi-language sites, and 2.6.7 for a normal site).
B
Boudi:
Hi Brofield,
First off all...thank you for taking the time to try to solve this issue. I really appreciate it!
Specs:
- WB 2.7
- Allcss2 template
I did exactly what you wrote and it works like a charm! :lol: :lol:
The menu stays intact like It should be! Great stuff! So nice to see it works after weeks of stress :roll:
I will now test it in combination with other mods like anynews, multiple menu's etc.
If I have results about that I will put them here right away!
Thank again for helping me (and us) out! :-) :-)
doc:
Hello Brofield,
tested the latest version of show_menu2 (v4.60) on an existing WB 2.6.7 multi-lingual site: http://help.WebsiteBaker.org/
Everything works as it should (also tested with WB 2.7), thanks for providing a working solution.
Have updated the show_menu2 module on the addons repository with your latest version.
Thanks for your contribution.
Regards Christian
gucci:
Hallo Brofield,
I had the same problem like Knert.
Now, the menu stays intact when I click on search and the results are displayed.
But when I click on one of the results all div containers above the div container who includes the search (in index.php of my template) disappear.
I use wb 2.7 with showmenu2 (version 4.6), multilingual site.
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_CURR+1|SM2_CURRTREE, false, false, false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
Is this a problem of my template or a showmenue2 problem?
Sincerely
gucci
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version