Page 7 of 11
Posted: Wed 25. Oct 2006, 18:25
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.
Posted: Wed 25. Oct 2006, 18:30
by pepe
.... leider garnicht auf den automatisch generierten News-Lists
Das funktioniert
nur auf Kategorie-Ebene
d.h. wenn ein
ALIAS-Name entsprechen vergeben wurde.
Posted: Thu 26. Oct 2006, 20:03
by Oldboy
Oh.
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?
Posted: Thu 26. Oct 2006, 22:32
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
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?
Posted: Fri 27. Oct 2006, 10:30
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!
Problems with script which removes de, en, ...
Posted: Tue 14. Nov 2006, 15:29
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
---
Posted: Tue 14. Nov 2006, 15:48
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 !
Posted: Tue 14. Nov 2006, 16:04
by flip-flop
Posted: Thu 16. Nov 2006, 13:14
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
Stefan
---
Posted: Fri 17. Nov 2006, 10:02
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.
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
Posted: Wed 22. Nov 2006, 15:01
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
Posted: Thu 23. Nov 2006, 12:04
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
Posted: Thu 23. Nov 2006, 15:34
by niels_j
Hi Knut
Thank you.
/Niels
Frage
Posted: Thu 28. Dec 2006, 11:53
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
Posted: Sun 4. Mar 2007, 11:52
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 :
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