[phpBB Debug] PHP Warning: in file [ROOT]/ext/tas2580/seourls/event/listener.php on line 213: Undefined array key "FORUM_NAME"
How to make this dynamic - xml:lang="de" lang=&quo - REDAXO Forum
Hallo,

Wir haben in letzter Zeit festgestellt, dass die Kommunikation via Slack viel schneller und zielführender ist als ein Beitrag im Forum. Aufgrund der neuen und besseren Möglichkeiten der Kommunikation haben wir uns entschlossen das Forum nur noch als Archiv zur Verfügung zu stellen. Somit bleibt es weiterhin möglich hier nach Lösungen zu suchen. Neue Beiträge können nicht mehr erstellt werden.

Wir empfehlen, für deine Fragen/Probleme Slack zu nutzen. Dort sind viele kompetente Benutzer aktiv und beantworten jegliche Fragen, gerne auch von REDAXO-Anfängern! Slack wird von uns sehr intensiv und meistens "rund um die Uhr" benutzt :-)
Selbst einladen kannst Du dich hier: https://redaxo.org/slack/
Pezz
Beiträge: 17
Registriert: 3. Jul 2009, 00:57

How to make this dynamic - xml:lang="de" lang=&quo

26. Mär 2010, 04:39

Hi all,

I hope you understand my problem. ; )
I would like to have this

Code: Alles auswählen

xml:lang="de" lang="de"
dynamic and not making templates for all languages I use.

I couldn't find anything anywhere about this.
I tried real hard...

WordPress and the others are having it. Example:

Code: Alles auswählen

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
So I think Redaxo should have it as well!
Anybody knows the REX code for this?

Thank you!
P.

nik
Beiträge: 112
Registriert: 9. Dez 2008, 21:17

27. Mär 2010, 00:37

How about an additional meta entry for your articles? You can use them in the main page template to view the associated lang attribute.

Goldfisch
Beiträge: 230
Registriert: 22. Sep 2004, 17:47
Wohnort: Aschaffenburg
Kontaktdaten: Website

27. Mär 2010, 08:29

set your languages in system/languages section like this

id - description name
0 - de
1 - en

in the template get the current language and description name like this:

Code: Alles auswählen

echo $REX['CLANG'][$REX['CUR_CLANG']];

Code: Alles auswählen

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo $REX['CLANG'][$REX['CUR_CLANG']]; ?>>
peter

Pezz
Beiträge: 17
Registriert: 3. Jul 2009, 00:57

Re: How to make this dynamic - xml:lang="de" lang=&quo

14. Nov 2012, 06:13

Hi Peter, I tried to thank you already, but it seems like something went wrong and now I saw that my "thank you" is not here. Better late than never!

Zurück zu „Sonstiges“