Multilanguage site: submenu dissapears after search #SOLVED#

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:

<?php show_menu2(0SM2_ROOT+1SM2_CURRSM2_ALL|SM2_CURRTREEfalse); ?>

(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

...:: Bake the Unbakable ::...

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:

<?php show_menu2(0SM2_ROOT+1SM2_ALLSM2_ALL|SM2_CURRTREEfalse"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">'); ?>

PLease help. Thank you.  :oops:
...:: Bake the Unbakable ::...

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.
...:: Bake the Unbakable ::...

ruebenwurzel

Hello,

Have you tried the latest version of show_menu2? On Addons page there is version 4.41 available.

Matthias

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:
<?php show_menu2(0SM2_ROOTSM2_STARTtrue" [a]<img src=" .WB_URL .  "/media/flags/[menu_title].gif border=0 />[/a] "''''''false''0); ?>

menu:
<?php show_menu2(0SM2_ROOT+1SM2_ALLSM2_ALL|SM2_CURRTREEfalse"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">'); ?>
...:: Bake the Unbakable ::...

Boudi

Thank you Klaus,

Unfortenately the upgrade does not solve the problem either.

The only thing left I can do now is a fresh install but that means LOTS of extra work. And even then I still don't know if it will work well :(
...:: Bake the Unbakable ::...

kweitzel

Then please test WB 2.7 (RC2) if it works fine, as far as I know, this is included.

cheers

Klaus

Boudi

Thank you Klaus. I did not know that.

Unfortunately the solution does not work for me.

I have WB 2.6.7
Template: ALLCSS2
mod: Multilanguage

The menu still disapears when doing a search on a multilanguage template with show_menu2.

Any help would be highly appreciated. This is a huge project with a deadline.
...:: Bake the Unbakable ::...

kweitzel

A DIFF File is a file containing ONLY the changes, so replacing will not help. Use a Tool like WinDiff to merge the diff file into the original files.

cheers

Klaus

Boudi

Hi,

At this moment I'm working on the allcss2 template with multilanguage. All things are fine.

But when I do a search the whole menu dissapears.

I checked the forum and discovered that this is a known issue. On this page there seems to be a solution: http://projects.WebsiteBaker.org/websitebaker2/ticket/327

After reading this ticket I do not know what to do. I see 2 files, but do I have to replace them??

Besides that the same thing happens when using a multiple menu and after login via the front-end.

Any help would be appriciated. ThnQ.

Knert
...:: Bake the Unbakable ::...