Typo3 类型3 TCA l10n_模式排除和MM关系
在TYPO3 v10.4.9中,当我使用以下tx\u csdummy\u domain\u model\u product.php TCA时Typo3 类型3 TCA l10n_模式排除和MM关系,typo3,translation,extbase,typo3-10.x,Typo3,Translation,Extbase,Typo3 10.x,在TYPO3 v10.4.9中,当我使用以下tx\u csdummy\u domain\u model\u product.php TCA时 'items' => [ 'l10n_mode' => 'exclude', 'config' => [ 'type' => 'select', 'renderType' => 'selectMultipleSideBySide',
'items' => [
'l10n_mode' => 'exclude',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_csdummy_domain_model_item',
'foreign_table_where' => ' AND (tx_csdummy_domain_model_item.sys_language_uid IN (0,-1)) ORDER BY title ASC',
'MM' => 'tx_csdummy_product_item_mm',
]
],
],
在tx_csdummy_domain_model_item.php TCA中
'products' => [
'l10n_mode' => 'exclude',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_csdummy_domain_model_product',
'foreign_table_where' => ' AND (tx_csdummy_domain_model_product.sys_language_uid IN (0,-1)) ORDER BY title ASC',
'MM' => 'tx_csdummy_product_item_mm',
'MM_opposite_field' => 'items',
]
],
],
它应该以默认语言工作。但当我把这两个网站都翻译过来时,有些地方出了问题
例如,我有产品默认(uid=1)、产品翻译(uid=2)、项目默认(uid=5)和项目翻译(uid=6)
A) 如果保存产品,则翻译后的产品的uid指向该项目的默认语言uid
tx_csdummy_product_item_mm
uid_local uid_foreign
1 5
2 5
B) 如果保存项目,则翻译项目的uid指向产品的默认语言uid
tx_csdummy_product_item_mm
uid_local uid_foreign
1 5
1 6
在前端,我无法在项目的英文版本中看到相关产品。
对于B,我无法在产品的英文版本中看到相关项目。我认为这可能是TYPO3中的已知错误-请参阅
tx_csdummy_product_item_mm
uid_local uid_foreign
1 5
1 6