Typo3更新具有排除字段的非默认语言记录
我有英语和德语的网站。对于我的extbase记录,我将所有字段配置为:
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
除了这些输入
和text
字段,其中包含我要翻译的文本。这在较低(TCA)级别上的预期工作:如果我想更改任何排除的字段,我会以英语(默认)记录更改它,并且更改也反映在德语记录中。
但是我在前端,控制器更新操作中有一个很大的问题:当我以德语访问我的网站时,我更新了德国唱片更改一个排除的字段时,此更改仅针对德语记录而进行在英语记录中得到反映。此外,如果我然后通过后端更改记录中的任何内容,那么我对德国唱片领域的这种更改就会被英语唱片的价值覆盖,因此丢失了。
有什么办法可以以惯用的方式解决这种情况?
预先感谢!
I have my site in both English and German. For my Extbase records, I configure all the fields with:
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
except those input
and text
fields which contain text that I want to translate. This works as expected at a lower (TCA) level: If I want to change any of the excluded fields I change it in the English (default) record and the change is also reflected in the German record.
But I have a big problem in the frontend, in the Controller Update actions: when I'm visiting my website in German, and I update a German record changing one of the excluded fields, this change is only done for the German record and doesn't get reflected in the English record. Moreover, if I then change anything in the record through the backend, this change I made to the German record's field gets overwritten by the English record's value and therefore lost.
Is there any way to solve this kind of situations in an idiomatic manner for TYPO3's Extbase?
Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论