Important: #110591 - Custom columns in the workspaces module
See forge#110591
Description
Listeners of the PSR-14 event
\TYPO3\ can enrich
the records displayed in the workspaces backend module, but the module rendered a
fixed set of columns and discarded any additional data. Adding custom columns to
the module, which was possible until TYPO3 v7, therefore did not work.
The record table of the workspaces module now renders custom columns. A listener
declares one by adding an
additional
section to the records it wants to
enrich:
$data = $event->getData();
$data['tt_content:42']['additional']['deadline'] = [
'label' => 'Deadline',
'value' => '2026-03-01 08:00',
'icon' => 'actions-clock',
'title' => 'Editorial deadline',
'url' => '/typo3/module/my-module?element=42',
];
$event->setData($data);
Records are indexed by table name and uid of the versioned record. All keys of a column are optional:
label- header of the column, falls back to the column identifiervalue- content of the cell, rendered as plain texticon- identifier of an icon rendered in front of the valuetitle- title attribute of the cellurl- wraps the content of the cell into a link to this URL
A column is displayed as soon as one record declares it. The columns are determined from all records of the workspace and not only from those of the current page, so the table header does not change while paging.