WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
I was thinking to use the <ul> tag, but then i don't know how to continue, cause i have no idea, how should i slice those images and how to make active buttons.
Quote from: Housy on July 22, 2009, 08:31:21 PMI was thinking to use the <ul> tag, but then i don't know how to continue, cause i have no idea, how should i slice those images and how to make active buttons.Well, I suggest looking for a WB template with graphic menu buttons, and see how it's done.
[i]<li>[a][menu_title][/a]</li>[/i]
<li>[a]<img>LEFT SIDE OF GRAY BUTTON[</img>[menu_title]<img>RIGHT SIDE OF GRAY BUTTON</img>[/a]</li>
It's not that easy. You'll probably have to work with conditional statements and show_menu2 (http://code.jellycan.com/show_menu2/). I can't help you. Figuring out this kind of stuff can take hours if not days. Try to find a template that does what you want as close as possible. Look for newest templates, that use show_menu2 instead of show_menu.
Or if you really need this menu, inclusing the active status, but a fixed menu is okay, you could use an external menu. Lots of CSS and DHTML examples to be found on the web! Then you don't have to bother with the menu generating function of WB.
The problem is that my client wants that menu and it shouldn't be fixed (that would be easy to do), because the client wants the button is flexible/adjustable, so if you have longer word in link, it works as well.
<ul><li><a href="#" class="m1"><b class="p1"> </b><b class="p2">Domov</b><b class="p3"> </b></a></li><li><a href="#" class="m2"><b class="p1"> </b><b class="p2">Cenitve</b><b class="p3"> </b></a></li><li><a href="#" class="m3 selected"><b class="p1"> </b><b class="p2">Financiranje</b><b class="p3"> </b></a></li><li><a href="#" class="m4"><b class="p1"> </b><b class="p2">Selitve</b><b class="p3"> </b></a></li><li><a href="#" class="m5"><b class="p1"> </b><b class="p2">Zavarovanje</b><b class="p3"> </b></a></li><li><a href="#" class="m6"><b class="p1"> </b><b class="p2">O podjetju</b><b class="p3"> </b></a></li><li><a href="#" class="m7"><b class="p1"> </b><b class="p2">Kontakt</b><b class="p3"> </b></a></li></ul>
If your menus are static and don't need to be generated by WB, than you can use just the code you entered. Sometimes that's easier than going the dynamic way. It's often more easy to style anyway.I wonder about the <b class=blabla> tags though... Why do you use b tags instead of div or span?
i don't really understand how do you change the language (the text inside links, if you know what i mean), if menus aren't generated by WB, cause if they are generated by WB, text inside links is changed to other languages automaticaly. Cause if i leave it static way and click on german language for example, menus/links will still be in the english language.
Quote from: Housy on July 24, 2009, 07:36:24 PM i don't really understand how do you change the language (the text inside links, if you know what i mean), if menus aren't generated by WB, cause if they are generated by WB, text inside links is changed to other languages automaticaly. Cause if i leave it static way and click on german language for example, menus/links will still be in the english language. The multilanguage capabilities of WB are not very sophisticated. In fact, you just create different pages for each language, so you end up with mirror sites within the main site. For each page within a certain mirror site you set the language. So if your main site is English, and you have a mirror site in French, you set the language for each page within the French section to French (in the page settings). Because each page has its own menu title, you don't have to work with IF THEN constructions. You just create a menu for each language section. It's most practical to use dedicated templates for each language section as well. But check out the support info about it, as crnogorac081 mentioned.
<ul><li><a href="http:/www.mysite.com/pages/en/home.php">Home</a></li></ul>
<ul><li><a href="http:/www.mysite.com/pages/de/startseite.php">Startseite</a></li></ul>
http:/www.mysite.com/pages/en/home.php">Homehttp:/www.mysite.com/pages/de/startseite.php">Startseite
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?