TCA basics · Question 2 of 12
What happens when a record is deleted in the backend if ctrl.delete = 'deleted' is set in the TCA?
1 answer is correct. Easy
Show answer
Answer
- A The record stays in the database and is only marked with deleted = 1
Explanation
ctrl.delete enables soft delete: when deleting, the DataHandler sets the given field to 1, while the row itself is kept. From then on, the backend, TypoScript, Extbase and the QueryBuilder treat it as deleted and hide it everywhere. With the system extension Recycler, such records can be restored, which rescues content that was deleted by accident. Hiding is something else: a record hidden via enablecolumns (hidden = 1) remains visible in the backend and is only not shown in the frontend.