WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • [SOLVED] - Multilingual website with show_menu2() - Kirk's solution not working
  • Print
Pages: [1]   Go Down

Author Topic: [SOLVED] - Multilingual website with show_menu2() - Kirk's solution not working  (Read 5469 times)

Kami

  • Guest
[SOLVED] - Multilingual website with show_menu2() - Kirk's solution not working
« 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  
Code: [Select]
<?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]
« Last Edit: November 12, 2009, 11:29:00 PM by Kami »
Logged

LordDarkman

  • Guest
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #1 on: November 09, 2009, 02:23:48 PM »
sm_root+1. It has to be qual to show_menu(1,0,1,). Please look also in thze show_menu2 Doku.

CU Moritz
Logged

Kami

  • Guest
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #2 on: November 09, 2009, 05:02:09 PM »
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
Logged

Offline marccouture

  • Posts: 219
  • Gender: Male
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #3 on: November 09, 2009, 05:06:06 PM »
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.
Logged
Marc C.

Kami

  • Guest
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #4 on: November 09, 2009, 05:25:05 PM »
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]
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #5 on: November 09, 2009, 05:57:07 PM »
Hallo,

there is also a problem with the structure of your pages in backend:

Quote
- 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

Code: [Select]
- 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


« Last Edit: November 09, 2009, 06:06:21 PM by Stefek »
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

LordDarkman

  • Guest
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #6 on: November 09, 2009, 08:12:48 PM »
Hi Kami,
Please read the docu for multilangual at http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php and then look at the sm2 doku http://websitebakers.de/sm2/
with this 2 it should be able for you to set up a multilangual page.

CU Moritz
Logged

Kami

  • Guest
Re: Multilingual website with show_menu2() - Kirk's solution not working
« Reply #7 on: November 10, 2009, 08:29:24 PM »
Thank you LordDarkman and Stefek, I am carefully looking at every document to find a solution to the issue.

Kami
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • [SOLVED] - Multilingual website with show_menu2() - Kirk's solution not working
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2