Project

General

Profile

Actions

Bug #102569

closed

Unable to add additional icons to content element header in Page module

Added by Friedemann Altrock 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2023-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions #1

Updated by Friedemann Altrock 5 months ago

  • Description updated (diff)
Actions #2

Updated by Oliver Bartsch 5 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

Actions #3

Updated by Friedemann Altrock 5 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

Actions #4

Updated by Oliver Bartsch 5 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.

Actions

Also available in: Atom PDF