Hallo Gemeinde,
ich möchte in eine Seite, welche auf dem Introduction-Package aufgebaut ist, weitere Sprache hinzufügen: ungarisch. Habe nun bereits alle Einstellungen wie in diesem Post erläutert, durchgeführt und mehrfach geprüft:
Meine Config sieht nun wie folgt aus:
menu.language
menu.language = HMENU
# We use a condition to show the language menu only on the page with the id from constant contentpage.examplelanguagesID
[globalVar = TSFE:id = {$contentpage.examplelanguagesID}]
menu.language {
special = language
special.value = 0,1,2
1 = TMENU
1 {
wrap = <ul>|</ul>
# Remove the (old) default behaviour which adds onfocus="blurLink(this);" to all links
noBlur = 1
NO = 1
NO {
# Override the standard menu item value (which is the page title) with our own cObject
stdWrap.cObject = TEXT
# Use the TypoScript option split function to display different values for the first and second item
stdWrap.cObject.value = {$contentpage.language1} || {$contentpage.language2} || {$contentpage.language3}
allWrap = <li>|</li>
}
ACT < .NO
ACT {
ATagParams = class="active"
}
}
}
[global]
page.config
// URL Settings
tx_realurl_enable = 1
simulateStaticDocuments = 0
// Language Settings
uniqueLinkVars = 1
linkVars = L(1)
sys_language_uid = 0
sys_language_overlay = 1
sys_language_mode = content_fallback
language = de
locale_all = de_DE.UTF-8
htmlTag_langKey = de
# Set baseURL setting for http or https
config.baseURL = http://{$config.domain}/
[globalString = IENV:TYPO3_SITE_URL=https://{$config.domain}/]
config.baseURL = https://{$config.domain}/
[global]
// Condition to switch the doctype and xml prologue
[browser = msie] && [version = <7]
config {
doctypeSwitch = 1
}
[global]
// Condition to set language according to L POST/GET variable
[globalVar = GP:L = 1]
config {
htmlTag_langKey = en
sys_language_uid = 1
language = en
locale_all = en_US
}
[global]
[globalVar = GP:L = 2]
config {
htmlTag_langKey = hu
sys_language_uid = 2
language = hu
locale_all = hu_HU
}
[global]
root.Template
# cat=contentpage; type=int+; label= examplelanguagesID: UID of the page which has the language menu enabled
examplelanguagesID = 6
# cat=contentpage; type=string; label= language1: name of the default language of this site
language1 = Deutsch
# cat=contentpage; type=string; label= language2: name of the second language of this site
language2 = English
# cat=contentpage; type=string; label= language3: name of the second language of this site
language3 = Magyar
}
# Set the language of meta tag with DC.language to German, when in German
[globalVar = GP:L = 1]
plugin.meta.language = de
[global]
[globalVar = GP:L = 2]
plugin.meta.language = hu
[global]
mod.SHARED.defaultLanguageLabel = Deutsch
mod.SHARED.defaultLanguageFlag = de.gif
realurl_autoconf.php
'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
1 => '1',
2 => '2',
3 => '3',
),
'noMatch' => 'bypass',
),
),
Die URL wird auch jeweils mit www.domain.de/home, www.domain.de/1/home und www.domain.de/2/home angezeigt. Der Seiteninhalt in deutsch und englisch ist auch noch OK, in der 3. Sprache wird jedoch der deutsche Inhalt angezeigt, obwohl die Home-Seite bereits in ungarisch angelegt wurde.
Des weiteren wird das Sprachen-Menü auch nur auf der Home-Seite angezeigt.
Was muss ich tun, um das Sprachen-Menü immer angezeigt zu bekommen?
Nun weiß ich echt nicht mehr, wo ich noch schrauben soll...
Hoffe auf Eure Hilfe, Dankeschön schon mal!
Gruß
OmaHerta