Feature #106299
openMake ViewMode Dropdown in RecordListController extendable with PSR-14 event
0%
Description
Since quite a time, there is a RenderAdditionalContentToRecordListEvent available to add addtional infos above and below of a record list.
Since this opens the possibility to add eg. custom record filters, it would be really nice to offer the user an option to switch them on or off as well.
The perfect place to do so (IMO) would be the ViewMode-Dropdown-Menu in the right corner of the record list view.
Currently this menu is limited to switch on/off the search and clipboard.
This could be easily made extendable by adding a PSR-14 event dispatcher right after the $viewModeItems array was filled (~ Line 405) inside the getDocHeaderButtons method of vendor/typo3/cms-backend/Classes/Controller/RecordListController.php
If this event were to receive the elements already added, the request, the $this->moduleData object and the $this->modTSconfig array, the possibilities would be (almost) endless.
Of course, a method must also be integrated that returns the (modified/extended) elements.
No data to display