Bug #102569
closedUnable to add additional icons to content element header in Page module
0%
Description
Before the complete rewrite of the PageLayoutView
, it was possible to add additional icons in the header of a content element in the Page module, via the hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks']
in \TYPO3\CMS\Backend\View\PageLayoutView::tt_content_drawHeader
.
In #98441 this hook has been removed and the PSR-14 event ModifyRecordListRecordActionsEvent
is suggested as a replacement.
This event is only dispatched from the DatabaseRecordList
and not from GridColumnItem
.
Also, the purpose of the event in the record list is to extend the actions button group, not add icons.
As such I view the lack of a possibility to add more icons after language and lock info to be a regression from v12 onwards.
Reference in 11.5: https://github.com/TYPO3/typo3/blob/8bfd2ed40d09379870f74a430d4e72cb6a52470a/typo3/sysext/backend/Classes/View/BackendLayout/Grid/GridColumnItem.php#L178-L181
Updated by Oliver Bartsch 12 months ago
- Status changed from New to Needs Feedback
Hi Friedemann,
actually, the reason is described in the changelog (Breaking: #98441 - Hook "recStatInfoHooks" removed):
For the page module, the new Fluid-based page module (available since TYPO3 v10), allows to modify the icon list directly in the template.
Could you please check whether this would be sufficient for your use case?
Best, Oli
Updated by Friedemann Altrock 12 months ago
Hi Oli,
oh man, sometimes you can't see the forest for the trees...
Yes of course, overriding the Fluid template is enough to achieve what I want to do.
Thanks
Friedemann
Updated by Oliver Bartsch 12 months ago
- Status changed from Needs Feedback to Closed
Great, then I'll close this issue. In case you still think something is not working, please just ping me or create a new issue with reference to this one.