Switch between multi-language sites PAGE TO PAGE

If you have created additional (non official) documentation or tutorials or something like that please post this here
Post Reply
Oldboy
Posts: 85
Joined: Mon 18. Sep 2006, 15:13

Post by Oldboy »

Super, klppt!

Ein Frage hab ich aber noch: wie funktioniert der Switch, wenn ich auf einer Artikelseite bin. Dort steht in der URL z.B. index.php?id=10,168,0,0,1,0.
Oldboy
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

.... leider garnicht auf den automatisch generierten News-Lists :cry:

Das funktioniert nur auf Kategorie-Ebene :!:

d.h. wenn ein ALIAS-Name entsprechen vergeben wurde.
Oldboy
Posts: 85
Joined: Mon 18. Sep 2006, 15:13

Post by Oldboy »

Oh. :shock:

Gibt es denn keine Möglichkeit die ID zu umgehen? Ich meine die Artikel gehören ja zum Grundkonzept von WCMS. Wie die Nummer rein zufällig generiert?
Oldboy
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

In dem Fall von Aerticellisten würde ich die das PHP-Scriptchen erweitern und eine Abfrage der speziellen ID machen, die dan auf die entsprechende der anderen Sprache verweist... erst dann kommt der Normalteil...

Du wirst ja nicht zuviele Listenseiten haben, denke ich???

Sollte gehen :wink:


EDIT:

Man sollte erst denken und dann schreiben....

Ne, diese Lösung ist Quatsch.... haben wir doch ein CMS, welches alles möglichst alleine machen soll... da ist so eine Handarbeit völliger Blödsinn!

Da muß uns doch was besseres einfallen...... aber was? :roll:
Oldboy
Posts: 85
Joined: Mon 18. Sep 2006, 15:13

Post by Oldboy »

Man sollte erst denken und dann schreiben....
... und ich sollte erst ausprobieren, dann beschweren!

Wenn ich in einem Artikel bin und die kryptische ID in der URL steht, gibt mir dein Skript die korrekte ID der entsprechenden Kategorie an. Damit kann ich leben! :D
Oldboy
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Problems with script which removes de, en, ...

Post by ShyGuy »

Hi and thanks a lot for this pretty nice solution.

The script to switch between the langusges works very well - as excepcted ;)
And I don't have problems in getting the recommended script below to do work; but it disarranges my submenus completely. I attached a screenshot to show you what happens - please be so nice and give me a short hint what to do to solve this...

Thanks a lot, Stefan

---
Image
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Your problem has nothing to do whith the multilanguage script, but with the NAV_TABL_COLUMN function inside version 1.2.7 and 1.2.8


Please change to NAV_LIST_ALL or better NAV_LIST_UL, because there are features for a complete CSS-modification.

Search for NAV_LIST_UL... there are many treads !
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Since 1.2.7 NAV_LIST_UL.
Basic: http://www.phpwcms.de/forum/viewtopic.php?t=12165
nav_table_column -> NAV_LIST_UL: http://www.phpwcms.de/forum/viewtopic.php?t=12716

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Post by ShyGuy »

Thanks a lot for supporting me but I would need a bit more assistance - if possible...
I modified the script to {NAV_LIST_UL} and it's working in that way, that it displays a different style of menu. So far - so good. But the submenus are much more on the right than when I used {NAV_LIST_COLUMN} and also the color and font size is much different. That wouldn't be a problem if I would know to change the appearance of NAV_LIST_UL :oops:

Stefan


---
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi Stefan,

what version of browser and OS did you use?
I don´t understand, why the submenu are on the right site.
That wouldn't be a problem if I would know to change the appearance of NAV_LIST_UL
It´s all basic css and if you like, some images.

If you have inserted the css file from my example 1:1, the output must show exactly like this without the little leading arrows.

Image

One hint:
Please kill these CC at your head section in the template.
-----------------------------
<!--[if IE]><style>
.nlu_navi1 ul li { float: left; height: 1%; }
.nlu_navi1 ul li a { height: 1%; }
</style><![endif]-->
-----------------------------
and insert the Holly hack at the end of the css file.

Code: Select all

/* Holly Hack. IE Requirement \*/
* html .nlu_navi1 ul li { float: left; height: 1%; }
* html .nlu_navi1 ul li a { height: 1%; }
/* End */ 
At this time we have a problem using IE7 (Win) and some browsers on a MAC.
This solution works for all browsers excluded IE7. For this browser the menu has a big white-space between the menu entries. I hope, I find a solution next days. But that isn´t important at this time.

Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
niels_j
Posts: 8
Joined: Fri 11. Feb 2005, 14:05
Location: Denmark

Post by niels_j »

How do I suppress the first level when using NAV_LIST_UL with the language switch.

My sitestructure as described long time ago :-)

masterhome
-da_index
--da_test1
---da_subtest1
---da_subtest2
--da_test2
-de_index
--de_test1
--de_test2
-en_index
-...
and so on...

When da_index is selected only submenus under that level should be visible. It worked like a charm with NAV_TABLE_COLUMN as described long time ago. But NAV_TABLE_COLUMN and ver 1.2.8 looks awfull.

/niels
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi niels,

Thats very easy using NAV_LIST_UL with the "level lift".

Code: Select all

[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo '<div class="nlu_navi1">'.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',,,active,,,}';
echo '</div>';
}
[/PHP]
Where LEVEL_ID'][X] is the level.

NAV_LIST_UL: http://www.phpwcms.de/forum/viewtopic.php?t=12716

Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
niels_j
Posts: 8
Joined: Fri 11. Feb 2005, 14:05
Location: Denmark

Post by niels_j »

Hi Knut

Thank you.

/Niels
User avatar
salmi
Posts: 200
Joined: Wed 31. May 2006, 19:48
Location: Österreich, Stadl-Paura
Contact:

Frage

Post by salmi »

Guten Tag,

muss ich wenn ich meine Homepage in meherern sprachen haben will jede seite die ich auf meiner homepage habe dann in die gewünschte sprache erstellen ?


Danke stefan
watakach
Posts: 14
Joined: Mon 12. Feb 2007, 19:44

Post by watakach »

Hi everyone, thx for this tutorial, but i can't make it....

I tried ... i tried but still doest work...

ok so i want to make a website in deutch and in francais...

Ok so i tried with a simple structur...

Home

--Français ALIAS: fr_test
----page1 ALIAS: fr_page1

--Deutsch ALIAS: de_test
----page1 ALIAS: de_page1

When i load my page index.php i can see the all menu :
Image

And my probleme is when i im on my page1 (FR) the url is
and when i click on my little germany flag the url is
I think that is my probleme... but i dont know why...
If someone had the same probleme or know the probleme please help meeeeeee :)
Post Reply