Hallo,
das Problem ist gelöst.
1. Web>Page: The page module must know that a translation must be bound 1-1 to the default translation. This is configured by setting “mod.web_layout.defLangBinding = 1” in Page TSconfig.
2.TypoScript: You must ask the frontend rendering to select content from the default language and look for overlay records from the translation. This is configured with “config.sys_language_overlay = 1” in the TypoScript Template.
Füge folgenden TYPOSCRIPT Code ein, und es funzt einwandfrei:
Das ist schon alles.
Jetzt habe ich mein Script noch mit 2 schönen Fahnen versehen.
Hier das fertige Script::
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41:
| config.linkVars = L config.uniqueLinkVars = 1 config.sys_language_uid = 0 config.language = de config.locale_all = de_DE.UTF8 config.sys_language_overlay = 1 temp.langlink1 = TEXT temp.langlink1.value=<img src="fileadmin/templates/img/us.png" alt="Englisch" width="16" height="11" border="0" /> temp.langlink1.typolink.parameter.data = page:uid temp.langlink1.typolink.additionalParams = &L=2 temp.langlink1.typolink.ATagParams = class="first" lang="en" xml:lang="en" [globalVar = GP:L = 2] config.sys_language_uid = 2 config.language = en config.locale_all = en_EN.UTF8 temp.langlink1 = TEXT temp.langlink1.value=<img src="fileadmin/templates/img/de.png" alt="Deutsch" width="16" height="11" border="0" /> temp.langlink1.typolink.parameter.data = page:uid temp.langlink1.typolink.additionalParams = &L=0 temp.langlink1.typolink.ATagParams = class="first" lang="de" xml:lang="de" [global] lib.langMenu = COA lib.langMenu { wrap= <table border="0" cellspacing="0" cellpadding="0"><tr>|</tr></table> 10 < temp.langlink1 10.wrap = <td width="25" align="left" valign="middle">|</td> } |
Jetzt einfach das Container Element lib.langMenu per TemplaVoila an die richtige stelle im Template mappen, und fertig ist die Sprachumschaltung!
Vielen Dank
Gruß Anderl