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

Multilanguage possible on templates with show_menu2 #SOLVED#

<< < (2/3) > >>

kweitzel:
Have a look again at your menucode ... and compare it to to the demo of show_menu2: http://code.jellycan.com/sm2test/

Have a special look at the section "First Level" and "Second Level".

cheers

Klaus

Boudi:
Hello Kweitzel,

ThnQ. I checked the examples!

After a few hours of trying all the steps I am a few steps closer now.

My basic template will be ALLCSS2. I managed it to let the flags do his job.

The ONLY issue that I cannot solve is that I cannot hide the container pages without hiding the childpages too.

So my question is: How can I hide the containers but show the menu that's underneath the containers.

These are my 2 show_menu's:


--- Code: ---<?php show_menu(1, 0, 1, true, "[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 ---

--- Code: ---<?php show_menu2(0, 0, 1, SM2_ROOT+2, false, "\n</li>", false, false, false, &#39;<ul id="header_menu" class="menu">&#39;); ?><br />
--- End code ---

ruebenwurzel:
Hello,

i saw you mixes show_menu with show_menu2. I would recommand to only use show_menu2. This way the menu only needs to be created one time and not twice and i think with the right parameters it also solves your question.

Matthias

Boudi:
Hello Matthias,

So you mean that I can merge the flag-choise menu and allcss2 menu together in 1 show_menu2 ?  :?

ruebenwurzel:
Hello,

no, you cannot do this with one menu call. But you can call show_menu2 multiple times. One for only show the flages and one for the menu itself and even a third or fourth call for spezial menu wich could be the same pages in every languages.

Using show_menu2 for all needed menus means, the whole menu tree is created only once and is displayed in different ways only with the setting off different parameters.

Matthias

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version