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

Multilanguage possible on templates with show_menu2 #SOLVED#

<< < (3/3)

doc:
Hello knert,

please have a look at http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php which explains the differences between calling the menu function twice (which is what you are after) and to have two differnt menus.

Regards Christian

Boudi:
Hello Matthias and Christian,

Thank you for taking the time to help me out. I really appreciate it.

I read your tips en suggestion links. This made more things clear to me which i tried to use on the code. But may be the ALLCSS2 template is kinda rough for multilanguage, I don't know.  :oops:

But now I'm lost. After several days of reading, trying, logical thinking etcetera I'm stucked.

I use the ALLCSS2 template. The flag menu does work well now (at least, this code gives me a proper result):


--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, 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 ---

But I'm totally stucked on the menu. Or I see the whole menu (with containers) or I see nothing  :cry:


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

As far I can think logically after all those testing and reading I did the best I can but it didn't help me out.

Can you please explain to me what I messed up on this code?  :oops:

Boudi:
Finally....I did it :)

I solved the multilanguage ALLCSS2 pulldownmenu which is compatible with Firefox too :)
With help from Matthias & Christian, thnQ.

flag code:


--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, 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 ---

menu code:


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

babsy:
hi.... Could i see a link to this page you made (because i think i have almost the same problem)
im making a page with the flags and with a drop down menu (generic template) - the flags works fine and the dropdown menu - UNTIL i try to hide the DK/UK top pages!! then it goes wrong, either i can get the drop down to work with the UK/DK as main pages - or i can hide the UK/DK pages, but then the drop down won´t work...
so im a bit lost here.... here is my code in the menu (its from generic template):

<div id="navigation">
        <?php if(SHOW_MENU2) { /* Only shown menu if we need to */ ?>    
        <?php pmenu(1,0,-1,false,'<li[locator][class]>[a][menu_title][/a]','</li>','<ul id="menu">','</ul>','',' class="sel"'); ?>
        <?php } ?>
<!--<ul>
<li class="selected"><a href="#">First page</a></li>
<li><a href="#">Second</a></li>
<li><a href="#">Third</a></li>
<li><a href="#">Fourth</a></li>
<li><a href="#">Fifth</a></li>
<li><a href="#">And the last one</a></li>
</ul>-->
</div>

Navigation

[0] Message Index

[*] Previous page

Go to full version