Project

General

Profile

Actions

Bug #21042

closed

HMENU are inclorrect generated

Added by Henning Moellendorf almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2009-09-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Henning Moellendorf almost 15 years ago

Sorry, should be raised to major, because there is no possibility to view the pages in other languages....

Actions #2

Updated by Steffen Kamper almost 15 years ago

when i look to your page i think it's a simple misconfiguration, you missed to use L in linkvars

Actions #3

Updated by Henning Moellendorf almost 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?

Actions #4

Updated by Chris topher almost 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 ..." }

Actions #5

Updated by Henning Moellendorf almost 15 years ago

Hi Christopher,

that are test outputs for the language menu, I will switch it off now.
Kind regards,
Henning

Actions #6

Updated by Henning Moellendorf almost 15 years ago

Also, when you apply the L-Parameter, the menu is generated wrong:

http://typo.mdorf.info/index.php?id=4&L=2

Actions #7

Updated by Henning Moellendorf almost 15 years ago

I can provide a restricted login for you, if you need.

Actions #8

Updated by Chris topher almost 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

Actions #9

Updated by Henning Moellendorf almost 15 years ago

Dear Christopher, it doesn't work without realurl neigher, so I don't have any idea how to circumstance the problem.

Actions #10

Updated by Chris topher almost 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:

  1. Always transfer the L-parameter to links
    config.linkVars = L
  2. Standard-language
    config.sys_language_uid = 0
    config.language = de
  1. For L = 2: English
    [globalVar = GP:L = 2]
    config.sys_language_uid = 2
    config.language = en
    [global]
  1. ...and so on for russian and whatever else you have.
Actions #11

Updated by Henning Moellendorf almost 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 = CONTENT
#lib.subPagesIds {
  1. table = pages
  2. select {
  3. pidInList = 19,17,16,15,14,13,12,108,113,11,23
  4. max = 5
  5. where = description <> '' and pid <> 4
  6. orderBy = description asc
  7. #languageField = sys_language_uid
  8. }
  9. renderObj = TEXT
  10. renderObj {
  11. field = uid
  12. wrap = | ,
  13. }
    #} #
    #[globalVar = GP:L>0] #
    #lib.subPagesIds = CONTENT
    #lib.subPagesIds {
  14. table = pages_language_overlay
  15. select {
  16. pidInList = 19,17,16,15,14,13,12,108,113,11,23
  17. max = 5
  18. where = description <> '' and pid <> 4
  19. orderBy = description asc
  20. languageField = sys_language_uid
  21. }
  22. renderObj = TEXT
  23. renderObj {
  24. field = uid
  25. wrap = | ,
  26. }
    #}

[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&quot;&gt;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&quot;&gt;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

config {
linkVars = L
sys_language_uid = 0
language = de
locale_all = de_DE
baseURL = http://typo.mdorf.info
}
  1. English language, sys_language.uid = 1
    [globalVar = GP:L=2]
    config.sys_language_uid = 2
    config.language = en
    config.locale_all = english
  2. 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]
Actions #12

Updated by Henning Moellendorf almost 15 years ago

Credentials sent

Actions #13

Updated by Chris topher almost 15 years ago

Please close this ticket, the error was caused by a wrong configuration in the Install Tool and the TypoScript templates.

Actions #14

Updated by Steffen Kamper almost 15 years ago

wrong configuration

Actions

Also available in: Atom PDF