[TYPO3] Language JSMenu?
Jochen Stange
derstange at gmx.de
Thu Apr 12 16:39:10 CEST 2007
Hi All.
I'm trying to set up a language-selector using a JSMenu. Since this does
not work with the regular TYPO3 JSMENU, I set up a VERY static version
like this:
# DROPDOWN LANGUAGE MENU #
lib.langmenu = HMENU
lib.langmenu.wrap=<form action="#"><select name="select_menu" onChange="if
(this.value != '') { document.location.href = this.value; } return
false;">|</select></form>
lib.langmenu {
1 = TMENU
1 {
NO = 1
NO.allWrap.dataWrap = <option value="">Language</option> || <option
value="{field:uid}.html?L=0">DE</option> || <option
value="{field:uid}.html?L=1">EN</option> || <option
value="{field:uid}.html?L=2">FR</option> || <option
value="{field:uid}.html?L=3">ES</option> || <option
value="{field:uid}.html?L=4">IT</option>
NO.doNotShowLink = 1
}
}
Not nice, but working.
However, now we want to switch to config.sys_language_mode = strict.
Now there is no way to avoid the error message when a user wants to
switch the language for a non-existant translation. -> The nice way
would be to hide the option value if the page is not available.
Is there another way to set up a language - JSMENU?
Thanks.
Cheers, Jochen
More information about the TYPO3-english
mailing list