WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Multilanguage site: submenu dissapears after search #SOLVED#
Boudi:
Unfortenately WB 2.7 does the same thing...the menu dissapears.
What I did:
- downloaded WB 2.7
- a clean install
- installed ALLCSS2 template
- installed show_menu2
- made it multilanguage by following the steps as mentioned in the link below.
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php
What happens:
After a search the menu dissapears.
After some testing It seems like it's the known root problem again. Because of the multilanguage there must be some editing in the show_menu2 parameters to hide the root. Because of the root hiding the menu dissapears after doing a search. I recently checked a website http://www.trekwerk.com that does handle this issue.
So I think I do something wrong in the paramaters of the show_menu2
flags:
--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, true, " [a]<img src=" .WB_URL . "/media/flags/[menu_title].gif border=0 />[/a] ", '', '', '', false, '', 0); ?>
--- End code ---
menu:
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
ruebenwurzel:
Hello,
Have you tried the latest version of show_menu2? On Addons page there is version 4.41 available.
Matthias
Boudi:
Yes Matthias,
I downloaded it and it gave me the same result, the menu dissapears.
I would like to learn from the mistake I make why it's not working for me.
I think I'm pretty sure that I did something wrong with the show_menu2 param's in my previous message.
#Update#
After some backyard screaming and strong coffee I checked the code again and deleted SM2_ROOT in the show_menu2.
Now it works like a charm!
Thank you for your time and answers.
Boudi:
How cruel can this world be :cry:
Just of a sudden...my multilanguage website where I was working on does not work correctly any more.
I struggled for 3 full weeks to run a multilangual website. And now, after 3 weeks, spending more than 150 hours I'm back to where the problem began.
The problem that I'm running into constantly is the simple fact that when I do a search the submenu dissapears.
I did everything you can think of. Did a fresh install with WB 2.7, read the help page for multilanguage website thousands of times, entered just every show_menu2 combination that I could think of, checked the help in the forum, checked numberous templates and more....but still no luck.
Now, it's clear for me that i'm not able to solve this issue any more by myself. Can anyone please finish my suffering and spend some time to help me with this neverending story? When needed url + login is available in pm.
I think the problem is in the show_menu2:
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
PLease help. Thank you. :oops:
Boudi:
A few days further, still no luck. I ran out of options.
Still the same problem: On a multilanguage website when doing a search the submenu dissapears.
I checked the doc http://code.jellycan.com/files/show_menu2-README.txt from the show_menu2 and came out with a code that seems to me the most logic one:
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_CURR, SM2_ALL|SM2_CURRTREE, false); ?>
--- End code ---
(sm2_root+1 = starting 1 level beneath the root | sm2_curr = starts with the current page level | sm2_all = all levels are displayed | sm2_currtree = leave out the other menus from the other languages)
My question to ANYONE who can give me the solution or has made a successfull multilanguage website with a good working search function: can you please share the show_menu2 code or help me get rid of the things I do wrong?
I'm working on this for a few weeks now and I would like to go further with the build of the website and the deadline of it.
Thank you
Sincerly
Knert
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version