WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Kami on November 09, 2009, 01:52:29 PM
-
Hello,
I tried to follow Kirk's thread here below, but it did not work.
https://forum.WebsiteBaker.org/index.php/topic,13577.0.html
my site structure:
- EN (Main navigation root level) (rem: menu link to HOME)
- - HOME (Main navigation level1 subpage of EN)
- - - WEB DESIGN (Main navigation level 2 subpage of HOME)
- - - PORTFOLIO (Main navigation level 2 subpage of HOME)
- - - PROFILE (Main navigation level 2 subpage of HOME)
- - - CONTACT (Main navigation level 2 subpage of HOME)
- DE (Main navigation root level)
- - STARTSEITE (Main navigation level 1 subpage of DE)
- - - WEB DESIGN (Main navigation level 2 subpage of STARTSEITE)
- - - REFERENZEN (Main navigation level 2 subpage of STARTSEITE)
- - - PROFIL (Main navigation level 2 subpage of STARTSEITE)
- - - KONTAKT (Main navigation level 2 subpage of STARTSEITE)
- FR (Main navigation root level)
- - PAGE D'ACCUEIL (Main navigation level 1 subpage of FR)
- - - WEB DESIGN (Main navigation level 2 subpage of PAGE D'ACCUEIL)
- - - PORTFOLIO (Main navigation level 2 subpage of PAGE D'ACCUEIL)
- - - PROFIL (Main navigation level 2 subpage of PAGE D'ACCUEIL)
- - - CONTACT (Main navigation level 2 subpage of PAGE D'ACCUEIL)
Which parameters should I use in show_menu2(x,y,z, ...) ?
Right now, I have <?php show_menu2(2, SM2_ROOT, SM2_START); ?>
You'll find a screenshot of the unsuccessful menu in the attachment.
Thanks in advance,
Kami
[gelöscht durch Administrator]
-
sm_root+1. It has to be qual to show_menu(1,0,1,). Please look also in thze show_menu2 Doku.
CU Moritz
-
so i have to replace SM2_ROOT by sm_root+1 in <?php show_menu2(2, SM2_ROOT, SM2_START); ?> ?
I don't understand what you mean when you write:
" It has to be qual to show_menu(1,0,1,). " ?
Thanks very much,
Kami
-
I vaguely remember having to insert a page with no second level at the end of the menu structure of that template (it is Multiflex 3, right?) to ensure your drop-down menus work correctly.
-
To get a better picture, you will find in the attachment the index.txt file (equivalent to index.php)
Once again, I need to correct the two following menus:
<!-- Navigation Level 1 -->
<div class="nav1">
<?php show_menu2(2, SM2_ROOT, SM2_START); ?>
</div>
and
<!-- Breadcrumbs -->
<div class="header-breadcrumbs">
<?php show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB, '<li>[a][menu_title]</a></li>','','[if(level>0{}[if(level==0){<ul>}]','');?>
</ul>
Thanks,
Kami
[gelöscht durch Administrator]
-
Hallo,
there is also a problem with the structure of your pages in backend:
- EN (Main navigation root level) (rem: menu link to HOME)
- - HOME (Main navigation level1 subpage of EN)
- - - WEB DESIGN (Main navigation level 2 subpage of HOME)
- - - PORTFOLIO (Main navigation level 2 subpage of HOME)
- - - PROFILE (Main navigation level 2 subpage of HOME)
- - - CONTACT (Main navigation level 2 subpage of HOME)
Home, Webdesign, portfolio etc. should be at the same LEVEL like
- EN (Main navigation root level) (rem: menu link to HOME)
- - HOME (Main navigation level1 subpage of EN)
- - WEB DESIGN (Main navigation level 2 subpage of HOME)
- - PORTFOLIO (Main navigation level 2 subpage of HOME)
- - PROFILE (Main navigation level 2 subpage of HOME)
- - CONTACT (Main navigation level 2 subpage of HOME)
For better understanding: EN, DE, FR are all at the same level
=> in Show_Menu2 it is equivalent to 'SM2_ROOT'
In show_menu2 'SM2_ROOT+1' means that you are 1 level higher than SM2_ROOT.
- EN => 'SM2_ROOT'
- - HOME => 'SM2_ROOT+1'
- - WEB DESIGN => 'SM2_ROOT+1'
- - PORTFOLIO => 'SM2_ROOT+1'
- - PORTFOLIO => 'SM2_ROOT+1'
- - - PORTFOLIO WEB => 'SM2_ROOT+2'
- - - PORTFOLIO PRINT => 'SM2_ROOT+2'
- - PROFILE => 'SM2_ROOT+1'
- - CONTACT=> 'SM2_ROOT+1'
First thing you will need to change is:
set the pages at the same level.
Than in SM2 menu call use SM2_ROOT+X (depending on your structure).
I hope this hint helps.
Regards,
Stefek
-
Hi Kami,
Please read the docu for multilangual at http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php (http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php) and then look at the sm2 doku http://websitebakers.de/sm2/ (http://websitebakers.de/sm2/)
with this 2 it should be able for you to set up a multilangual page.
CU Moritz
-
Thank you LordDarkman and Stefek, I am carefully looking at every document to find a solution to the issue.
Kami