Hy Leute,
wollte meine Sprachauswahl über eine Auswahlliste wählen.
Ein Forums-User gab mir den Tip das ich das über die Funktion Conditions separieren probieren sollte. Gesagt getan nur weiss ich jetzt eben nicht mehr weiter.
es funktioniert eigentlich alles......Sprache usw. kann ich alles auswählen er schaltet auch um (L0 L4 L5) und die Sprache wird mir dann auch angezeigt aber sobald ich auf einen Menüpunkt klicke bzw. die Seite neu lade kommt die Standartsprache Englisch, kann mir da vielleicht einer helfen.
hier das TS
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: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99:
| page.10.marks.languageswitcher = COA page.10.marks.languageswitcher{ 10 = TEXT 10.field = uid 10.wrap = <table border="0" height="10" cellpadding="0" cellspacing="0"> <tr> <td height="10"> <form action="index.php"> <input type="hidden" name="id" value="|"> <table border="0" width="120" cellpadding="0" cellspacing="0" height="10"> <tr> <td align="center" valign="center" width="20"><img src="fileadmin/mund.gif"></td> <td width="100"> <select class="sprache" name="L" size="1" onchange="this.form.submit()" style="width:100px;font-size:7pt;font-face:Verdana;font-color:#003C70;height:17;border:0;background-color:#C7D9F1;color:#003C70;border-style:solid; border-width:1px; border-color:#C7D9F1;valign:center;"> <option value="0">english</option> <option value="4">german</option> <option value="2">japanese </option> </select></div> </td> </tr> </table></form></td></tr></table> } [globalVar = GP:L=0] config.sys_language_uid = 0 config.language = en config.locale_all = eng page.10.marks.languageswitcher = COA page.10.marks.languageswitcher{ 5 < temp.wrapvor 10 = TEXT 10.field = uid 10.wrap = <table border="0" height="10" cellpadding="0" cellspacing="0"> <tr> <td height="10"><form action="index.php"> <input type="hidden" name="id" value="|"> <table border="0" width="120" cellpadding="0" cellspacing="0" height="10"> <tr> <td align="center" valign="center" width="20"><img src="fileadmin/mund.gif"></td> <td width="100"> <select class="sprache" name="L" size="1" onchange="this.form.submit()" style="width:100px;font-size:7pt;font-face:Verdana;font-color:#003C70;height:17;border:0;background-color:#C7D9F1;color:#003C70;border-style:solid; border-width:1px; border-color:#C7D9F1;valign:center;"> <option value="0" selected="selected">english</option> <option value="4">german</option> <option value="5">japanese</option> </select></div></td></tr></table></form></td></tr></table> 100 < temp.wrapnach } [global] [globalVar = GP:L=4] config.sys_language_uid = 4 config.language = de config.locale_all = de_DE page.10.marks.languageswitcher = COA page.10.marks.languageswitcher{ 5 < temp.wrapvor 10 = TEXT 10.field = uid 10.wrap = <table border="0" height="10" cellpadding="0" cellspacing="0"> <tr> <td height="10"> <form action="index.php"> <input type="hidden" name="id" value="|"> <table border="0" width="120" cellpadding="0" cellspacing="0" height="10"> <tr> <td align="center" valign="center" width="20"><img src="fileadmin/mund.gif"></td> <td width="100"><select class="sprache" name="L" size="1" onchange="this.form.submit()" style="width:100px;font-size:7pt;font-face:Verdana;font-color:#003C70;height:17;border:0;background-color:#C7D9F1;color:#003C70;border-style:solid; border-width:1px; border-color:#C7D9F1;valign:center;"> <option value="0">english</option> <option value="4" selected="selected">german</option> <option value="5">japanese</option> </select></div></td></tr></table></form></td></tr></table> 100 < temp.wrapnach } [global] [globalVar = GP:L=5] page.10.marks.languageswitcher = COA page.10.marks.languageswitcher{ 5 < temp.wrapvor 10 = TEXT 10.field = uid 10.wrap = <table border="0" height="10" cellpadding="0" cellspacing="0"> <tr> <td height="10"><form action="index.php"> <input type="hidden" name="id" value="|"> <table border="0" width="120" cellpadding="0" cellspacing="0" height="10"> <tr> <td align="center" valign="center" width="20"><img src="fileadmin/mund.gif"></td> <td width="100"><select class="sprache" name="L" size="1" onchange="this.form.submit()" style="width:100px;font-size:7pt;font-face:Verdana;font-color:#003C70;height:17;border:0;background-color:#C7D9F1;color:#003C70;border-style:solid; border-width:1px; border-color:#C7D9F1;valign:center;"> <option value="0">english</option> <option value="4">german</option> <option value="5" selected="selected">japanese</option></select></div></td></tr></table></form></td></tr></table> 100 < temp.wrapnach } [global] |