TYPO3: How can I translate content elements within articles for news?

爷,独闯天下 提交于 2020-01-05 07:38:33

问题


I am using the news extension: news and have enabled the content element rendering for my articles via extension setup (Use content element relation). This works great and redacteurs can use content elements in the news articles, too.

Furthermore I have localized and translated all the articles So if I switch the language in frontend then the translated articles will show up, but the content elements within this translated articles are still in the default language and not translated. So it seems that the translation of the content elements is not working for me.

For this reason I have checked the language of the content elements within the translated articles again, but the language settings of this content elements looks right:

I don't know what I am doing wrong and hope you can help me?

System:

  • TYPO3 7.6.12
  • news 4.3.0

UPDATE

I have found the following ticket: https://forge.typo3.org/issues/67905 and I have tried a updated version of the typoscript in this ticket, but it don't work for me, but maybe is this right way to get the content elements translated, too. Any idea?


回答1:


I have found the solution :). News use RECORDS for content element rendering. So I have to add some typoscript.

setup.txt or setup area

config {
    sys_language_overlay = 1
}


来源:https://stackoverflow.com/questions/40550695/typo3-how-can-i-translate-content-elements-within-articles-for-news

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!