[TYPO3] language menu in drop-down box

rupali.ffm at googlemail.com rupali.ffm at googlemail.com
Thu Sep 11 16:58:59 CEST 2008


Hello,

trying to create a language menu in drop-down box with two language
options-english and german

following is the code I have tried, but it always shows the root page in
English or german. Pls Help



# DROPDOWN LANGUAGE MENU

lib.sprache_oben= HMENU

lib.sprache_oben.special = language

lib.sprache_oben.special.value = 0,2

lib.sprache_oben.1 = TMENU

lib.sprache_oben.wrap =<form action=""><select name="select_menu"
onChange="document.location.href = this.value">|</select></form>

lib.sprache_oben.1{

NO = 1

NO.linkWrap =<option value="{page:uid}/en"> English</option>||<option
value="{page:uid}/de"> Deutsch</option>

NO.doNotLinkIt = 1



}

config:

page {

config {

sys_language_mode = strict

sys_language_uid = 0

language = en

locale_all = en_UK.utf8

doctype = xhtml_trans

xmlprologue = none

htmlTag_langKey = en

xhtml_clearing = all

disablePrefixComment = true

doctypeSwitch = 1

no_cache = 0

no_search = 0

admPanel = 0

removeDefaultJS = 1

linkVars = L

uniqueLinkVars = 1

sys_language_overlay = hideNonTranslated

noPageTitle=2

simulateStaticDocuments = 0

}

}



[globalVar = GP:L = 2]

page.config.sys_language_uid = 2

page.config.language = de

page.config.locale_all = de

page.config.htmlTag_langKey = de_DE

page.sys_language_overlay = hideNonTranslated

page.meta.keywords = my deutsche keywords

[global]



Rupali


More information about the TYPO3-english mailing list