For english speaking users.
von Pezz » 3. Nov 2009, 15:46
Hi there,
I know how to add languages inside the system.
The question is how to show them on the front-end?
I downloaded Max-CLang
http://www.redaxo.de/180-0-addon-details.html?addon_id=581 AddOn, but there is no explanation how to use it really.
Any help?
Thanx!
-
Pezz
-
- Beiträge: 14
- Registriert: 2. Jul 2009, 23:57
von Cheffchen » 6. Nov 2009, 14:42
Hello,
- Code: Alles auswählen
<?php
if ($REX['CUR_CLANG']==1) {
$lang .= '<img src="files/en1.gif" alt="English" /> <a href="'.rex_getUrl($this->getValue("article_id"),"0").'"><img src="files/de2.gif" alt="Deutsch" /></a>';
}
elseif ($REX['CUR_CLANG']==0) {
$lang .= '<a href="'.rex_getUrl($this->getValue("article_id"),"1").'"><img src="files/en2.gif" alt="English" /></a> <img src="files/de1.gif" alt="Deutsch" />';
}
#usw.
Cheffchen
-

Cheffchen
-
- Beiträge: 1129
- Registriert: 3. Mär 2009, 12:51
- Wohnort: Berlin
-
Zurück zu We speak english
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast