Page 1 of 1
Menu does not switch
Posted: Sun 6. Sep 2009, 16:13
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 -->
<a h-ref="index.php?en{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:../bilder/english.gif}</a> <!-- Umschaltung/switch -> DEUTSCH -->
<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!!!

Re: Menu does not switch
Posted: Sun 6. Sep 2009, 19:19
by flip-flop
Hello,
I think you haven“t set the right entry point for the navigation in the english template.
Knut
Re: Menu does not switch
Posted: Sun 6. Sep 2009, 19:23
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 -->
<a href="index.php?de{PHP:scripts/strip-prefix.php}" target="_self">deutsch</a>
Many thanks again in advance!!
Re: Menu does not switch
Posted: Sun 6. Sep 2009, 20:52
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
Re: Menu does not switch
Posted: Mon 7. Sep 2009, 09:27
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?
Re: Menu does not switch
Posted: Mon 7. Sep 2009, 10:07
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
Re: Menu does not switch
Posted: Mon 7. Sep 2009, 10:17
by marcelap
Ahhh, it works now!!!!!!!!!!!
Thank you so much Knut!!