Typo3更新具有排除字段的非默认语言记录

发布于 2025-01-24 23:48:13 字数 451 浏览 3 评论 0原文

我有英语和德语的网站。对于我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文