Bug #21042
closedHMENU are inclorrect generated
Added by Henning Moellendorf about 15 years ago. Updated about 15 years ago.
0%
Description
The links of the HMENU are in the default language correct. But in case you switch to another language, the links are getting broken and deferring to pages from default language.
http://typo.mdorf.info is the website.
English is implemented so you can check it.
(issue imported from #M11934)
Updated by Henning Moellendorf about 15 years ago
Sorry, should be raised to major, because there is no possibility to view the pages in other languages....
Updated by Steffen Kamper about 15 years ago
when i look to your page i think it's a simple misconfiguration, you missed to use L in linkvars
Updated by Henning Moellendorf about 15 years ago
Hi Steffen,
thanks for your reply. I think, I transfer the L-variable, but there is realurl active. What can the problem be?
Updated by Chris topher about 15 years ago
Can you check the according configuration?
There must be some errors in it:
E.g. viewing an "english" page, I sometimes get an "array(){" at top of the output...
For example: http://typo.mdorf.info/index.php?id=contact&L=2
array(9) { [2]=> string(7) "CONTACT" [3]=> string(7) "CONTACT" [4]=> string(8) "CONTATTI" [5]=> string(8) "CONTACTO" [6]=> string(22) "???????????" [7]=> string(7) "KONTAKT" [8]=> string(16) "????????" [9]=> string(12) "????" [0]=> string(21) "Schreiben Sie uns ..." }
Updated by Henning Moellendorf about 15 years ago
Hi Christopher,
that are test outputs for the language menu, I will switch it off now.
Kind regards,
Henning
Updated by Henning Moellendorf about 15 years ago
Also, when you apply the L-Parameter, the menu is generated wrong:
Updated by Henning Moellendorf about 15 years ago
I can provide a restricted login for you, if you need.
Updated by Chris topher about 15 years ago
That won't help.
Check it without realurl, make it work and then set up a working realurl-config.
For more information see here:
http://dmitry-dulepov.com/article/realurl-made-easy-part-1.html
Updated by Henning Moellendorf about 15 years ago
Dear Christopher, it doesn't work without realurl neigher, so I don't have any idea how to circumstance the problem.
Updated by Chris topher about 15 years ago
Realurl just checks the value which L has and puts the letters for that in your path.
So you first have to make sure, that the variable L is set correctly.
Go to Web > Template --> Setup and check if you have something like the following:
- Always transfer the L-parameter to links
config.linkVars = L - Standard-language
config.sys_language_uid = 0
config.language = de
- For L = 2: English
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = en
[global]
- ...and so on for russian and whatever else you have.
Updated by Henning Moellendorf about 15 years ago
Hi Christopher,
I've checked it and I can accomplish, that the config.linkVars = L is inserted.
I've now posted my TS Setup:
config{
simulateStaticDocuments = 1
prefixLocalAnchors = all
tx_realurl_enable = 0
}
#lib.subPagesIds {
- table = pages
- select {
- pidInList = 19,17,16,15,14,13,12,108,113,11,23
- max = 5
- where = description <> '' and pid <> 4
- orderBy = description asc
- #languageField = sys_language_uid
- }
- renderObj = TEXT
- renderObj {
- field = uid
- wrap = | ,
- }
#} #
#[globalVar = GP:L>0] #
#lib.subPagesIds = CONTENT
#lib.subPagesIds { - table = pages_language_overlay
- select {
- pidInList = 19,17,16,15,14,13,12,108,113,11,23
- max = 5
- where = description <> '' and pid <> 4
- orderBy = description asc
- languageField = sys_language_uid
- }
- renderObj = TEXT
- renderObj {
- field = uid
- wrap = | ,
- }
#}
[global]
page = PAGE
page {
headerData {
5 = TEXT
5 {
value.field = title
value = <title>Pfannenberg GmbH - Schaltschrank-Klimatisierung, Prozesskühlung, Signaltechnologie</title>
} #5
} #headerData
meta.title = Pfannenberg GmbH - Schaltschrank-Klimatisierung, Prozesskühlung, Signaltechnologie
meta.description = Pfannenberg GmbH
meta.keywords = Blitzleuchte, Schallgeber, Mehrfachleuchte, Dauerleuchte, Peltier, Kühlgerät, Schaltschrankklimatisierung, Filterlüfter, Luftwasserwärmeaustauscher, Rückkühler, Chiller, Schaltschrankkühlung, Industriekühlung, Maschinenkühlung, Maschinenleuchte, Ex-ATEX, Antriebskühlung, Rückkühlungsanlage, Wärmetauscher, Signalgeber, Signalgeräte, Meldeleuchte, Alarmierung, Alarmsirene, Feuersirene, Heizung, Thermostat, Hygrostat, Blinkleuchte
meta.robots = index,follow
meta.author = Pfannenberg GmbH
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/template/template_new.html
marks {
MAIN_CONTENT < styles.content.get
FOOTER = CONTENT
FOOTER {
table = tt_content
select.pidInList = 44
select.languageField = sys_language_uid
}
LANGMENU = PHP_SCRIPT
LANGMENU.file = fileadmin/scripts/languagemenu.inc
HEADNAV = HMENU
HEADNAV {
special = directory
special.value = 4
special.language = sys_language_uid
1 = TMENU
1 {
noBlur = 1
NO = 1
NO {
ATagParams = class="head_navi_1 headnav" || class="head_navi_2 headnav"|| class="head_navi_3 headnav" || class="head_navi_4 headnav" || class="head_navi_5 headnav" || class="head_navi_6 headnav"
#linkWrap = <div class="head_nav_{register:count_MENUOBJ}">|</div>
} #NO
} #1
} #HEADNAV
HOMELINK = HTML
HOMELINK {
value = <a href="/" class="homelink">HOME</a>
} #HOMELINK
SPARES_TITLE = TEXT
SPARES_TITLE {
value = Spareparts-Online-Shop
} #SPARES_TITLE
SPARES_PLACER = HTML
SPARES_PLACER {
value = <a href="http://www.pfannenberg-spareparts.de/?lang=de">Rund um die Uhr bestellen...</a><br /><br />Jetzt haben Sie die Möglichkeit Ihre Ersatzteile-Bestellungen bei Pfannenberg online auszuführen. <a href="http://www.pfannenberg-spareparts.de/?lang=de">Klicken Sie hier ...</a>
} #SPARES_PLACER
NEWEST_PRODUCTS2 = CONTENT
NEWEST_PRODUCTS2 {
table = pages
select {
pidInList = 19,17,16,15,14,13,12,108,113,11,23
max = 5
where = description <> ''
orderBy = description asc
#languageField = sys_language_uid
}
renderObj = TEXT
renderObj {
field = title
wrap = <li>|</li><br />
}
} #NEWEST_PRODUCTS2
NEWEST_PRODUCTS = CONTENT
NEWEST_PRODUCTS {
table = tt_content
select {
pidInList.cObject < lib.subPagesIds
#where = section_frame=20
groupBy = pid
max = 5
}
renderObj = COA
renderObj {
10 = TEXT
10 {
typolink.parameter.field = pid
wrap = <h1>|</h1>
}
20 =< tt_content.header
} #renderObj
} #NEWEST_PRODUCTS2
} #marks
} #14101
} #page
linkVars = L
sys_language_uid = 0
language = de
locale_all = de_DE
baseURL = http://typo.mdorf.info
}
- English language, sys_language.uid = 1
[globalVar = GP:L=2]
config.sys_language_uid = 2
config.language = en
config.locale_all = english - English language, sys_language.uid = 1
[globalVar = GP:L=3]
config.sys_language_uid = 3
config.language = fr
config.locale_all = french
[globalVar = GP:L=4]
config.sys_language_uid = 4
config.language = it
config.locale_all = italian
[globalVar = GP:L=5]
config.sys_language_uid = 5
config.language = es
config.locale_all = spanish
page.10.marks.HOMELINK.value = <a href="/" class="homelink">INCIO</a>
[globalVar = GP:L=6]
config.sys_language_uid = 6
config.language = gr
config.locale_all = greek
[globalVar = GP:L=7]
config.sys_language_uid = 7
config.language = cz
config.locale_all = czech
page.10.marks.HOMELINK.value = <a href="/" class="homelink">DOM?</a>
[globalVar = GP:L=8]
config.sys_language_uid = 8
config.language = ru
config.locale_all = russian
page.10.marks.HOMELINK.value = <a href="/" class="homelink">?? ???</a>
[globalVar = GP:L=9]
config.sys_language_uid = 9
config.language = ch
config.locale_all = chinese
[global]
Updated by Chris topher about 15 years ago
Please close this ticket, the error was caused by a wrong configuration in the Install Tool and the TypoScript templates.