graphical language menu

I found this Language-Menu using a simple Typoskriptsnipped. I found this on http://snippets.typo3.org/snippets/ . I think it is much easier than the skript (languages.inc.php) which comes with the TYPO3 install.

temp.langMenu = HMENU
temp.langMenu.special = language
temp.langMenu.special.value = 0,1,2
temp.langMenu.special.normalWhenNoLanguage = 0
temp.langMenu.1 = GMENU
temp.langMenu.1.NO {
9 = IMAGE
9.file = fileadmin/template/img/uk_d.gif || fileadmin/template/img/de_d.gif || fileadmin/template/img/fr_d.gif
}
 
temp.langMenu.1.ACT < temp.langMenu.1.NO
temp.langMenu.1.ACT = 1
temp.langMenu.1.ACT.9.file = fileadmin/template/img/uk.gif || fileadmin/template/img/de.gif || fileadmin/template/img/fr.gif
  • Add to favorites
  • Facebook
  • Twitter
  • LinkedIn
  • del.icio.us
  • MisterWong
  • Technorati
  • StumbleUpon

Related posts:

  1. A nice Languagemenu made with TS For all those who do not want to use the...
  2. Language detect Well, for those who handle Multi-Language Sites: This Plugin detects...
  3. Codesnippets zu TypoScript, HTML, Javascript & CSS Unter www.analog.de/knowledge-base haben wir eine kleine Datenbank mit Codesnippets angelegt....
  4. Headline als Image darstellen Mit Hilfe von ein Paar Zeilen Typoskript ist es möglich,...

Related posts brought to you by Yet Another Related Posts Plugin.

2 Comments

ConstantinFebruar 9th, 2011 at 09:01

Nice example :)

Can you tell me how should 9.file look like if I have a fourth language?

Thanks!

randomresultFebruar 9th, 2011 at 10:36

9.file = fileadmin/template/img/uk_d.gif || fileadmin/template/img/de_d.gif || fileadmin/template/img/fr_d.gif || fileadmin/template/img/uk_d.gif

Leave a comment

Your comment