[英]TYPO3 content fallback
What I try to do is to define a alternative language fallback for non translated content elements.我尝试做的是为未翻译的内容元素定义替代语言后备。
By default the language uid 0 is defined as fallback.默认情况下,语言 uid 0 被定义为后备。 I want to change this to language uid 1, which is englisch in my case.
我想将其更改为语言 uid 1,在我的情况下是英语。
I make the following language settings im my Typoscript Setup我在我的 Typoscript 设置中进行了以下语言设置
config.sys_language_uid = 0
config.sys_language_overlay = 1
config.sys_language_mode = content_fallback;1,0
config.language = de
config.locale_all = de_DE.UTF8
What I expect is that the fallback for pages and content is englisch and not german.我期望的是页面和内容的后备是英语而不是德语。
What's wrong here?这里有什么问题?
As the name states content_fallback is meant to change the display of (tt_)content not pages. 顾名思义, content_fallback旨在更改(tt_)内容而非页面的显示。 Take a look at the frontend localization guide to get a better overview of the different results of the sys_language_mode configurations:
查看前端本地化指南,以更好地了解sys_language_mode配置的不同结果:
https://docs.typo3.org/typo3cms/FrontendLocalizationGuide/LocalizationModes/Index.html#best-practice-localization-mode https://docs.typo3.org/typo3cms/FrontendLocalizationGuide/LocalizationModes/Index.html#best-practice-localization-mode
For typo3 v11 have a look at: https://extensions.typo3.org/extension/mst_contentfallback Use strict mode and define the fallback language.对于 typo3 v11,请查看: https://extensions.typo3.org/extension/mst_contentfallback使用严格模式并定义。 Lanuage 0 must be least fallback language.
语言 0 必须是最少的后备语言。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.