[TYPO3] language menu in drop-down box

rupali.ffm at googlemail.com rupali.ffm at googlemail.com
Fri Sep 12 11:21:48 CEST 2008


yes u  r correct, the location values r incorrect here, any other help is
most welcome

On Thu, Sep 11, 2008 at 5:49 PM, lee perry <leeperry at slack.de> wrote:

> Hi Rupali,
> > following is the code I have tried, but it always shows the root page in
> > English or german. Pls Help
> >
>
> > NO.linkWrap =<option value="{page:uid}/en"> English</option>||<option
> > value="{page:uid}/de"> Deutsch</option>
>
>
> I think your location-values ("{page:uid}/en" and "{page:uid}/de") are
> not correct:
> when these vars will be replaced, than an URL-location like "4/de" will
> be the result and this is not the correct URL - so you will be
> redirected to the root page.
>
> But I also think, the replacing of {page:uid} doesn't work - it's only
> inside a linkWrap and no insertData is set, so it will be transleted as
> a normal string.
>
> you have to build a correct link and than to add the language parameter,
> if you are building the URL by yourself.
> here an example of my language menu with a self builded URL:
>
> 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]
>
> maybe it will help you.
>
> To get the correct URL inside the special=language menue, as you have
> tried it, you have to wait for another help - it's not my way ;)
>
> greetings,
> Lee
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list