[Typo3] Text based language menu
Ries van Twisk
typo3 at rvt.dds.nl
Tue Oct 25 14:26:15 CEST 2005
Carla Froitzheim wrote:
>Ries van Twisk wrote:
>
>
>
>>Still I am wondering if it cannot be done with just typoScript,
>>Afterall Kasper implemented the language menu and I am sure he thought about
>>people that don't want to see tha flags, but just the TS.
>>
>>
>>
>>
>Can be done:
>
>temp.languageselect = TEXT
>temp.languageselect.value = english
>
># German language, sys_language.uid = 0
>[globalVar = GP:L = 0]
>temp.languageselect = TEXT
>temp.languageselect.value = english
>[global]
>
># English language, sys_language.uid = 1
>[globalVar = GP:L = 1]
>temp.languageselect = TEXT
>temp.languageselect.value = deutsch
>[global]
>
>temp.metanavi = COA
>temp.metanavi {
> 20 = HMENU
> 20 {
> special = language
> special.value = 0, 1
> special.normalWhenNoLanguage = 1
> 1 = TMENU
> 1 {
> NO = 1
> ACT = 1
> noBlur = 1
> wrap = <ul>|</ul>
> NO {
> stdWrap.cObject < temp.languageselect
> linkWrap = <li class="li1">|</li>
> }
> ACT < .NO
> ACT {
> doNotShowLink = 1
> }
> USERDEF1 < .NO
> USERDEF1 {
> doNotLinkIt = 1
> linkWrap = <li class="li1nolink">|</li>
> }
> }
> }
>
>Carla
>
>_______________________________________________
>
>
That's a interesting approach,
I never though of putting the name of the language in the condition.
I need to test it still, but would it show both languages at the same time?
And is it possible just like with the language flags to show a grayed
out language
when there is non avaiable?
Ries,
More information about the TYPO3-english
mailing list