[TYPO3] language menu and realurl (issue with L=0 language)
Ralph Grier
rpgrier at gmail.com
Sat Sep 29 05:00:55 CEST 2007
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