WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Menu problem!
Housy:
Oh yeah :-D That thing with templates works great :-D
Thank you, and it's much easier than show_menu function :wink:
Thanks again,
Housy
crnogorac081:
You do not have to change template unless you want ! Both languages can use same template, unless you want other language to use different. Then you have to set for each page that (other) template.
Anyway if you use solution:
--- Code: ---http:/www.mysite.com/pages/en/home.php">Home
http:/www.mysite.com/pages/de/startseite.php">Startseite
--- End code ---
Then you have to set your menu like this:
EN
-Home
-Page 2
- Sub Page...
DE
- Startsiete
- Sub page german (sorry I dont speak deuche...)
<?php show_menu2(0, SM2_ROOT, ..... is first menu (to choose EN or DE) , and
<?php show_menu2(0, SM2_ROOT+1, shows Home, page2... if you chose EN for example..
For more info check show_menu2 page.
As you can see, root level is menu en and DE , and ROOT+1 is Home (if you click english) , page 1, ROOT+2 is Sub page 1 (if you clikc english) ...
Also there is another solution for multilanguage site, and I will try to post an example tonight, or at monday (I am off for weekend)
Argos:
--- Quote from: Housy on July 24, 2009, 09:00:30 PM ---And then when i add a new page in each language, i always choose the right template for it and add links in both templates manually?
Is that the right way? So i must create and install 2 different templates?
--- End quote ---
Yes, that is the most easy way. Of course you can use dynamical WB menus, like crnogorac081 wrote. That is technically "nicer" if you like. But if the pages remain constant, you can use the manual way just as well.
Housy:
It's a much better, easier and faster solution to do it my way (templates), if you're not that familiar with show_menu function, except if your menu is very simple, then you should ofcourse use dynamical WB menu.
Thanks, I owe both of you a beer :lol:
Off topic: Crnogorac, ti si iz crne gore, jel tako? :-D
Housy
crnogorac081:
aha :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version