[TYPO3-english] Language Switch

amadeo Marketing & Design - Paul Garais garais at amadeo-marketing.de
Tue Sep 17 18:34:39 CEST 2013


Hi Miguel,

try this:

config.linkVars = L(0-3)


and further:

temp.langlink1 = TEXT
temp.langlink1.value = <img src="fileadmin/templates/gfx/deutsch.png" alt="Deutsch" />
temp.langlink1.typolink.parameter.data = page:uid
temp.langlink1.typolink.additionalParams = &L=0
temp.langlink1.typolink.ATagParams = lang="de" xml:lang="de"
temp.langlink1.typolink.wrap = |

temp.langlink2 = TEXT
temp.langlink2.value = <img src="fileadmin/templates/gfx/englisch.png" alt="Englisch" />
temp.langlink2.typolink.wrap = |
temp.langlink2.typolink.parameter.data = page:uid
temp.langlink2.typolink.additionalParams = &L=1
temp.langlink2.typolink.ATagParams = lang="en" xml:lang="en"

temp.langSelect = COA
temp.langSelect  {
   wrap = |

   10 < temp.langlink1
   10.wrap = |

   20 < temp.langlink2
   20.wrap = |
}

lib.langMenu < temp.langSelect



Just add your further languages there and change the languages corresponding to your config.


- Paul




	


Am 17.09.2013 18:21, schrieb Miguel:
> Hello everyone!
>
> I found a snippet in the Core Documentation that could solve my problem, but it also isnt working 
> for me, clearly i'm doing something wrong....Here it is a print from my TS in the template:
>
> http://img819.imageshack.us/img819/464/amx5.png
>
> Please Help Me !!
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list