WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Multilanguage site: submenu dissapears after search #SOLVED#

<< < (5/7) > >>

brofield:
After doing this, try updating to this version of the sm2 include file. The changes in this revision are a test only and it may not be the real version. Basically, this uses the referrer page ID as the current page ID when we don't have a current page (i.e. after a search, the menu still considers you to be on the same page as when you started the search). Not sure if this is what is really desired though.

http://showmenu2.googlecode.com/svn-history/r11/trunk/include.php

Boudi:
Thank you Brofield for taking the time to check it out. Unfortenately the answer is: not working.

What I did:

- fresh install wb2.7
- enabled page languages in adv. settings
- enabled intro page in adv. settings
- installed SM2 4.5 mod
- installed ALLCSS2
- created the language structure
- ONLY changed 2 lines of code within the index.php of the ALLCSS2 template:

flags:

--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, false, " [a]<img src=" .WB_URL .  "/media/flags/[menu_title].gif border=0 />[/a] ", &#39;&#39;, &#39;&#39;, &#39;&#39;, false, &#39;&#39;, 0); ?>
--- End code ---

menu:

--- Code: ---<?php 
show_menu2(0, SM2_ROOT+1, SM2_START+1, SM2_TRIM|SM2_PRETTY, &#39;<li><a &#39; ."[if(class=menu-current){class=\"menu_current\" }]" .&#39;href="[url]" target="[target]">[menu_title]</a>&#39;, "</li>", "<ul>","</ul>", false, &#39;<ul>&#39;); 
?>
--- End code ---

- implemented the : <input type="hidden" name="referrer" value="[REFERRER_ID]" />
- changed the include.php

Result: [link removed]

Sincerely,
Knert

brofield:
So what is it supposed to be showing?
I see nothing but as far as I know, that is what I am supposed to see.

Boudi:
When you do a search, the menu is dissapearing.  :|

When you want I can pm you the logindata?

Luckyluke:
Hi,

I have something in common. And that in 2 cases. My site also contains 2 languages: (NL and EN).

Example how something can obtain:

1: visit www.kisstory.be
2: Select a language, English for example
3: Select guestbook
4: Select sign guestbook
5: well, here you see the menu change. Suddenly, EN or NL (Dutch) as a main menu  :?

For this test I enabled the search capabilities (I will turn it off in some days). If you are looking for something and press search then the menu disappears, only the main menu is visible. A similar case as Knert.

I have no solution for this. The search is normally turned off on my site. And I can live with the problem of the guest book, But it is not a pretty sight.
And for the record: my template doesn't use MENU2 !!!

Grtz,
Luc

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version