[TYPO3] language menu and realurl (issue with L=0 language)

Ralph Grier rpgrier at gmail.com
Sat Sep 29 20:42:49 CEST 2007


Just to provide a little more information as I am debugging,  I have tried
the following,

 NO.additionalParams = &L= || &L=1 || &L=2 || &L=3 || &L=4

and this did not help.  I disabled realurl, and saw the following URL
generated.

http://www.domain.com/index.php?id=43&L=1&L=&L=0

I am confused as to why its generating the L=1 parameter, when 0 is english,
and then why it is generating an L=0 parameter after I unset L.  what I was
hoping to do with my additional params directive for the NO object was to
override the L setting, since realurl generates the correct urls in english
when L= (nothing) and the wrong urls when L=0.

Any help in this matter would be greatly appreciated.  Thank you.

On 9/28/07, Ralph Grier <rpgrier at gmail.com> wrote:
>
> Hello,
>
> I have a multilingual site with the following structure:
>
> www.domain.com/
> www.domain.com/de/
> www.domain.com/fr/
> www.domain.com/es/
> www.domain.com/ru/
>
> (although the www.domain.com/en technically works, I don't like to use
> it).
>
> in my realurl configuration, I have English as language 0, german as
> language 1, french as my language 2 and so on.
>
> I just created a new language menu with typo3 (previously I was replacing
> markers).  The language menu works great, except for one minor detail.  I
> have the following code:
>
> temp.flags= HMENU
> temp.flags.special = language
> temp.flags.special.value = 0,1,2,3,4
> temp.flags.1 = TMENU
> temp.flags.1.noBlur = 1
> temp.flags.1 {
>   NO.stdWrap.cObject = HTML
>   NO.stdWrap.cObject.value = <img alt="English" src="/images/us.png"
> /><br/>English || <img alt="Deutsch" src="/images/de.png" /><br/>Deutsch ||
> <img alt="Français" src="/images/fr.png" /><br/>Français || <img
> alt="Español" src="/images/es.png" /><br/>Español || <img alt="Русский"
> src="/images/ru.png" /><br/>Русский
>   NO.allWrap = <div class="langmenu">|</div> || <div
> class="langmenu">|</div> || <div class="langmenu">|</div> || <div
> class="langmenu">|</div> || <div class="langmenu">|</div>
>
>   ACT < .NO
>   ACT = 1
>   ACT.doNotShowLink = 1
>   ACT.allWrap =
>
>   USERDEF1 < .NO
>   USERDEF1 = 1
>   USERDEF1.doNotLinkIt = 1
>   USERDEF1.allWrap = <div class="langmenu"><a href="/">|</a></div> || <div
> class="langmenu"><a href="de/">|</a></div> || <div class="langmenu"><a
> href="fr/">|</a></div> || <div class="langmenu"><a href="es/">|</a></div> ||
> <div class="langmenu"><a href="ru/">|</a></div>
> }
>
> The problem is that at such time, when the language menu generates links
> for english (which is language L=0), the links generated include the /en/,
> for example
>
> www.domain.com/en/somelink.html which is not what I want.  I want it to
> generate:
> www.domain.com/somelink.html without the /en/
>
> I have traced this result to the following.  If the link is internally
> generated as L=0, then the /en/ will show from realurl, if the link is
> generated as L=   (nothing), then the english page still displays, but the
> /en/ portion of the link does not display.  This is how I would like the
> language menu to work.  Does anyone have any idea how I can get a language
> menu not to induce realurl to include the /en/.  Perhaps for language =0 is
> there a way to get it just to generate L=  (nothing) = or is there a setting
> for L=0 not to set L at all with respect to realurl at least?
>
> Thank you very much.
>
>


More information about the TYPO3-english mailing list