Feature #58611
openTCA: Extending "behaviour" for IRRE fields with "disableCopyingChildrenWithParent"
0%
Description
It would be a great feature to extend the "behaviour" for IRRE fields with an option called "disableCopyingChildrenWithParent" (related to "disableMovingChildrenWithParent"). In some cases it might be neccessary to disable to copying of children, for example when having a bidirectional relation "ModelA <1:n> ModelB <n:1>".
$TCA['tx_myext_table']['columns']['field'] = array(
'config' => array(
'type' => 'inline',
'foreign_table' => '...',
'appearance' => array(
...
),
'behaviour' => array(
'disableMovingChildrenWithParent' => 1,
'disableCopyingChildrenWithParent' => 1,
'localizationMode' => 'select',
'localizeChildrenAtParentLocalization' => 1,
)
),
);
Files
Updated by Oliver Hader over 10 years ago
- Status changed from New to Accepted
I agree, since the default moving behavior of child records can be overridden individually, the accordant behavior for copying records is missing in my eyes.
Updated by Mathias Schreiber almost 9 years ago
- Category changed from 978 to DataHandler aka TCEmain
Updated by Markus Bischof over 7 years ago
As a temporary workaround you could simulate this behaviour with the setToDefaultOnCopy
in the ctrl section. But I aggree, it would be more straight forward with the described option.
Updated by Mathias Brodala over 4 years ago
- File typo3-cms-core-disable-copying-children-with-parent.patch typo3-cms-core-disable-copying-children-with-parent.patch added
Here's a very basic patch which implements this for TYPO3v8.
Updated by Mathias Brodala over 4 years ago
- Related to Bug #61835: Copying IRRE child records behaviour differs with certain TCA settings added
Updated by Mathias Brodala about 4 years ago
- File typo3-cms-core-v9-disable-copying-children-with-parent.patch added
Here's the patch refreshed for TYPO3v9.
Updated by Mathias Brodala about 4 years ago
- File deleted (
typo3-cms-core-v9-disable-copying-children-with-parent.patch)
Updated by Mathias Brodala about 4 years ago
- File typo3-cms-core-disable-copying-children-with-parent.patch typo3-cms-core-disable-copying-children-with-parent.patch added
The last patch basically broke copying of pages since all fields where filled with 0
. Here's a revised version of the patch, notice that the option has been renamed to copyChildrenWithParent
.
Updated by Jan Kornblum over 1 year ago
- Priority changed from Should have to Must have
Anybody interested in integrating this really useful feature into core now? ;)