Menu does not switch

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
marcelap
Posts: 17
Joined: Mon 30. May 2005, 21:02

Menu does not switch

Post by marcelap »

Hello,

My page switches from english to german (when I click in the language tabs the front page switsches to english) but my menu stays the same (in german) ... intercentar.de

Could it be this code goes in the german template but in the english it should be different? I have the same code for both templates:
<!-- Umschaltung/switch -> DEUTSCH -->
&nbsp;&nbsp;
<a h-ref="index.php?en{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:../bilder/english.gif}</a> <!-- Umschaltung/switch -> DEUTSCH -->
&nbsp;&nbsp;
<a href="index.php?de{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:../bilder/deutsch.gif}</a></td>

Any help would be very much appreciated!! Thanks!!! :)
Last edited by marcelap on Sun 6. Sep 2009, 19:20, edited 1 time in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Menu does not switch

Post by flip-flop »

Hello,

I think you haven´t set the right entry point for the navigation in the english template.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
marcelap
Posts: 17
Joined: Mon 30. May 2005, 21:02

Re: Menu does not switch

Post by marcelap »

Thanks a lot for you reply!

You mean somewhere in the english template itself? Hmm .. Could you please help me more?
I have this <td valign=top>{NAV_TABLE_COLUMN:23} ...

And this on the english template:

<!-- Umschaltung/switch -> DEUTSCH -->
&nbsp;&nbsp;
<a href="index.php?de{PHP:scripts/strip-prefix.php}" target="_self">deutsch</a>

Many thanks again in advance!!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Menu does not switch

Post by flip-flop »

Wath are the base ID of your german and english structure tree? They may not be be the same.

Please have a look: http://forum.phpwcms.org/viewtopic.php?p=83791#p83791

The first two sections:
- Basics: Level and ID with a multilingual switch e.g. (IDs are coincidentally selected)
- NAVIGATION

(In mind, change {NAV_LIST_UL:F,..... to {NAV_TABLE_COLUMN:.....)

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
marcelap
Posts: 17
Joined: Mon 30. May 2005, 21:02

Re: Menu does not switch

Post by marcelap »

Hello Knut,

thanks a lot again for your help!!

I have in both en and deu templates this
<a href="index.php?id=0,0,0,1,0,0">

hmm ... they may be different you mean? I am afraid this is not easy for me to understand ... Should I change the ID?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Menu does not switch

Post by flip-flop »

Basics: Level and IDs e.g. (IDs are coincidentally selected)
=====================================================

Code: Select all

 ------------------------------------
 L  E  V  E  L
-:  :  :  :  :
-0  1  2  3  4   <- LEVEL-No.)
-:  :  :  :  :
-+ home   :  :                        ID=0
-+--+ en                              ID=01
-+--+--+ en_category_01               ID=02
-+--+--+ en_category_02               ID=03
-+--+--+--+ en_category_02_01         ID=05
-+--+--+--+--+ en_category_02_01_01   ID=07
-+--+--+--+--+ en_category_02_01_02   ID=08
-+--+--+--+ en_category_02_02         ID=06
-+--+--+--+ en_category_02_03         ID=09
-+--+--+ en_category_03               ID=04
-+--+--+ en_category_04               ID=10
-:  :  :  :  :
-+--+ de                              ID=11
-+--+--+ de_Kategorie_01              ID=12
-+--+--+ de_Kategorie_02              ID=13
-+--+--+--+ de_Kategorie_02_01        ID=15
-+--+--+--+--+ de_Kategorie_02_01_01  ID=17
-+--+--+--+--+ de_Kategorie_02_01_02  ID=18
-+--+--+--+ de_Kategorie_02_03        ID=16
-+--+--+--+ de_Kategorie_02_03        ID=19
-+--+--+ de_Kategorie_03              ID=14
-+--+--+ de_Kategorie_04              ID=20

category
-:  :  :  :  :
-0  1  2  3  4   <- LEVEL No.
 ------------------------------------
The ID you will find in ADMIN -> site structure -> hover over the little image before the category name.

Navigation setting for this example:
In the englisch template you should set {NAV_TABLE_COLUMN:01}
In the german template you should set {NAV_TABLE_COLUMN:11}

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
marcelap
Posts: 17
Joined: Mon 30. May 2005, 21:02

Re: Menu does not switch

Post by marcelap »

Ahhh, it works now!!!!!!!!!!!

Thank you so much Knut!!
Post Reply