Project

General

Profile

Actions

Bug #81562

closed

localizeReferencesAtParentLocalization vs localizeChildrenAtParentLocalization

Added by Kevin Ditscheid almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-06-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I think I am very confused by how these two TCA settings regarding localization handling of relations are handled.
I used localizeReferencesAtParentLocalization and wondered why my inline-relations aren't affected at all and not been localized when localizing my parent record. It seems that this setting isn't been used for inline relations and it is not mentioned for inline type fields in the documentation. But the setting is there, handling select-fields and their relations. The documentation however mentiones that this setting is mainly used for inline-relation fields, which is not true.
So either the doc is wrong, or this confusing configuration settings are handled wrong by the code.

https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Select.html#localizereferencesatparentlocalization
https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Inline.html#localizechildrenatparentlocalization

So, this does not work:

        'foreigns' => [
            'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:tx_myext_domain_model_local.foreigns',
            'exclude' => 1,
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'tx_myext_domain_model_foreign',
                'foreign_field' => 'foreign_field',
                'localizeReferencesAtParentLocalization' => TRUE,
                'maxitems' => 9999
            ]
        ],

This does work instead:

        'foreigns' => [
            'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:tx_myext_domain_model_local.foreigns',
            'exclude' => 1,
            'config' => [
                'type' => 'inline',
                'foreign_table' => 'tx_myext_domain_model_foreign',
                'foreign_field' => 'foreign_field',
                'behaviour' => [
                    'localizeChildrenAtParentLocalization' => TRUE
                ],
                'maxitems' => 9999
            ]
        ],

Actions #1

Updated by Oliver Hader almost 7 years ago

The statement "(mostly used in Inline Relational Record Editing)" in the documentation for localizeReferencesAtParentLocalization for TCA type select is wrong.

  • localizeReferencesAtParentLocalization is for aggregated references only (select, group using MM tables)
  • localizeChildrenAtParentLocalization is for compositions of child-structures only (inline)
Actions #3

Updated by Oliver Hader almost 7 years ago

  • Status changed from New to Under Review
Actions #4

Updated by Kevin Ditscheid over 6 years ago

The documentation is fixed, so I think this ticket is already resolved and can be closed

Actions #5

Updated by Benni Mack over 6 years ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF