[TYPO3] language menu in drop-down box
lee perry
leeperry at slack.de
Fri Sep 12 14:31:51 CEST 2008
hi rupali,
so it shouldn't be difficult to customize my solution to get your
select-dropdown.
hera a
lib.langmenu.10.typolink.returnLast = url
and some other wraps there
lib.langmenu.10.wrap = <option value="|">Deutsch</option>
lib.langmenu.20.wrap = <option value="|">English</option>
lib.langmenu.wrap = <form action="#" method="get"><select
name="select_menu" onchange="document.location.href = this.value; return
false;">|</select></form>
and that's it...
greetings,
lee
> yes u r correct, the location values r incorrect here, any other help is
> most welcome
>
>>
>> lib.langmenu = COA
>> lib.langmenu {
>> 10 = TEXT
>> 10 {
>> #debug = 1
>> value = Deutsch
>> typolink.parameter.data = page:uid
>> typolink.addQueryString = 1
>> typolink.addQueryString.method = GET
>> typolink.addQueryString.exclude = cHash,L
>> typolink.additionalParams.cObject = COA
>> typolink.additionalParams.cObject {
>> 10 = TEXT
>> 10.wrap = |&L=0
>> }
>> innerWrap = <span>|</span>
>> wrap = <li>|</li>
>> }
>>
>> 20 < .10
>> 20.value = Русский
>> 20.typolink.additionalParams.cObject.10.wrap = |&L=1
>>
>> 30 < .10
>> 30.value = English
>> 30.typolink.additionalParams.cObject.10.wrap = |&L=2
>>
>> wrap = <ul>|</ul>
>> }
>>
>> [globalVar = GP:L<1]
>> lib.langmenu.10 >
>> [global]
>>
>> [globalVar = GP:L=1]
>> lib.langmenu.20 >
>> [global]
>>
>> [globalVar = GP:L=2]
>> lib.langmenu.30 >
>> [global]
>>
More information about the TYPO3-english
mailing list