[英]TYPO3 9.5.2 / Typoscript: sys_language_mode = content_fallback not working
I added another language en to my homepage and added it also to the sites with entry point /en/. 我在首页中添加了另一种语言,并将其也添加到了带有入口点/ en /的站点中。 When I translate the startpage and switching the language to en, then it's working fine.
当我翻译起始页并将语言切换为en时,就可以正常工作。 But when I click at another page with no translation for en like /en/contact.html, then I got a 404 PageNotFound Exception.
但是,当我单击另一个没有翻译为/en/en/contact.html的页面时,出现了404 PageNotFound Exception。 My ts config of the page:
我的页面ts配置:
page = PAGE
page {
typeNum = 0
config {
absRefPrefix = /
no_cache = 1
noPageTitle = 1
linkVars = L(0-10)
language = de
locale_all = German
htmlTag_langKey = de-DE
sys_language_uid = 0
sys_language_mode = content_fallback
sys_language_overlay = 1
}
[globalVar = GP:L=1]
page.config {
sys_language_uid = 1
}
[global]
my sites config: 我的网站配置:
rootPageId: 2
base: 'http://some-domain.de/'
baseVariants: { }
languages:
-
title: 'Meine tolle Webseite'
enabled: true
languageId: '0'
base: /
typo3Language: de
locale: de_DE.UTF-8
iso-639-1: de
navigationTitle: ''
hreflang: ''
direction: ''
flag: de
-
title: 'Andere Sprache'
enabled: true
languageId: '1'
base: /en/
typo3Language: en
locale: en_US.UTF-8
iso-639-1: en
navigationTitle: ''
hreflang: ''
direction: ''
fallbackType: fallback
fallbacks: '0'
flag: en
errorHandling: { }
routes: { }
routeEnhancers:
PageTypeSuffix:
type: PageType
default: .html
map:
.html: 0
A patch was finally merged: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60367 But after release of TYPO3 9.5.5. 补丁最终被合并: https : //review.typo3.org/c/Packages/TYPO3.CMS/+/60367但是在TYPO3 9.5.5发布之后。 So expect it to be part of 9.5.6 then.
因此,期望它成为9.5.6的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.