Project

General

Profile

Actions

Feature #106299

open

Make ViewMode Dropdown in RecordListController extendable with PSR-14 event

Added by Alexander Grein 12 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2025-03-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

Actions

Also available in: Atom PDF