tx_news 中内容元素的翻译显示默认语言 [英] Translation of content elements in tx_news shows default language
本文介绍了tx_news 中内容元素的翻译显示默认语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- TYPO3:8LTS
- 新闻:6.3.0(也检查了 7.x)
- 新闻列表视图(页面)已翻译
- 新闻详情视图(页面)已翻译
- 翻译新闻记录
当我访问语言 UID 1 的页面时,新闻记录本身被翻译(例如 headline
).在 Detail 视图中,我们呈现内容元素.这始终以默认语言显示
When i visit the page on language UID 1 the news record itself is translated (For example headline
). In the Detail view we render the content element. This is always shown in the default language
推荐答案
问题可以通过将 sys_language_overlay
从 0
切换到 1
来解决
The Problem could be fixed by switching sys_language_overlay
from 0
to 1
config {
sys_language_mode = content_fallback
sys_language_overlay = 1
}
为了防止默认情况下隐藏内容元素,您还可以设置
To prevent that the content elements are hidden by default you could also set
TCEMAIN.table.tt_content {
disablePrependAtCopy = 1
disableHideAtCopy = 1
}
这篇关于tx_news 中内容元素的翻译显示默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文