Project

General

Profile

Actions

Task #102836

closed

Make JavaScript method FilesControlContainer::deleteRecord() public

Added by Daniel Siepmann 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Should have
Category:
Backend JavaScript
Target version:
-
Start date:
2024-01-15
Due date:
% Done:

100%

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

Description

The mentioned method is private right now.
It is a callback when deleting inline elements via a button click.
But it is possible to add custom controls via PSR-14 Events.

We now have an event that should "update" an inline element, e.g. a sys_file_reference. The customer has a naming schema which increases a number at the end. We now have a control to update based on that schema.
We therefore need to remove the existing element and insert a new one.

We strived for an alternative using typo3:foreignRelation:insert but it respects max items and doesn't provide a replace way. We therefore first need to remove the old child prior adding the new one. We therefore need the deleteRecord() method to be publicly available.

Actions

Also available in: Atom PDF