[TYPO3-english] Re: Can't change default language in multilingual site
Ilya Smirnoff
ilya.smirnoff at gmail.com
Tue Oct 14 15:56:25 CEST 2014
Hello Sinisa,
Your TS code of language menu working properly!
Strange that problem exist with FLUID and plug-in. Maybe I something lost.
Anyway - many thanks for your support!
Quote: Sinisa Mitrovic wrote on Tue, 14 October 2014 15:32
----------------------------------------------------
> Hello Ilya,
>
> Instead of:
> <languageMenu:widget.menu languages="0,1" layout="Links"
> languageTitle="1" />
> Try to add this in your fluid template:
> <f:cObject typoscriptObjectPath="lib.langMenu" />
>
> And in your main TypoScript add something like this:
>
> lib.langMenu = HMENU
> lib.langMenu {
> special = language
> special.value = 0,1
> special.normalWhenNoLanguage = 0
> 1 = TMENU
> 1 {
> # Normal link to language that exists:
> NO = 1
> NO.allWrap = |*| | * |*| |
> NO.linkWrap = <b style="background-color : grey"> | </b>
> NO.stdWrap.setCurrent = Russian|| English
> NO.stdWrap.current = 1
>
> # Current language selected:
> ACT < .NO
> ACT.linkWrap = <b style="background-color : red"> | </b>
>
> # Language that is NOT available:
> USERDEF1 < .NO
> USERDEF1.linkWrap = <span style="background-color :
> yellow"> | </span>
> USERDEF1.doNotLinkIt = 1
> }
> }
>
> Best regards,
> Sinisa Mitrovic
>
> On 10/14/2014 3:20 PM, Ilya Smirnoff wrote:
> > I try to use lang menu as FLUID:
> > <languageMenu:widget.menu languages="0,1" layout="Links"
> > languageTitle="1" />
> > or content element - "Language Selection" with selected "English"...
> > I can try generate it with TS...
> > &L=0 show me page with Russian content.
> > &L=1 - with English...
> > So stupid :(
> >
> > Quote: Sinisa Mitrovic wrote on Tue, 14 October 2014 15:11
> > ----------------------------------------------------
> >> Hello Ilya,
> >>
> >> How do you render your language menu?
> >> With TypoScript or some extension?
> >> Check if you have something like this in language menu:
> >> lib.langMenu.special = language
> >> lib.langMenu.special.value = 0,1
> >>
> >> Also, check if you have change of content if you ude directly in URL
> >> &L=0 and &L=1, if you do it is up to language menu
> >>
> >> Best regards,
> >> Sinisa Mitrovic
> >>
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english (at) lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> >
----------------------------------------------------
More information about the TYPO3-english
mailing list