Project

General

Profile

Actions

Feature #58611

open

TCA: Extending "behaviour" for IRRE fields with "disableCopyingChildrenWithParent"

Added by Jan Kornblum almost 10 years ago. Updated 11 months ago.

Status:
Accepted
Priority:
Must have
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2014-05-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #61835: Copying IRRE child records behaviour differs with certain TCA settingsAccepted2014-09-24

Actions
Actions #1

Updated by Oliver Hader almost 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.

Actions #2

Updated by Mathias Schreiber over 8 years ago

  • Category changed from 978 to DataHandler aka TCEmain
Actions #3

Updated by Markus Bischof almost 7 years ago

+1

Actions #4

Updated by Markus Bischof almost 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.

Actions #6

Updated by Mathias Brodala almost 4 years ago

  • Related to Bug #61835: Copying IRRE child records behaviour differs with certain TCA settings added
Actions #7

Updated by Mathias Brodala over 3 years ago

  • File typo3-cms-core-v9-disable-copying-children-with-parent.patch added

Here's the patch refreshed for TYPO3v9.

Actions #8

Updated by Mathias Brodala over 3 years ago

  • File deleted (typo3-cms-core-v9-disable-copying-children-with-parent.patch)
Actions #9

Updated by Mathias Brodala over 3 years ago

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.

Actions #10

Updated by Jan Kornblum 11 months ago

  • Priority changed from Should have to Must have

Anybody interested in integrating this really useful feature into core now? ;)

Actions #11

Updated by Jan Kornblum 11 months ago

  • Assignee set to Mathias Brodala
Actions

Also available in: Atom PDF