Review main Ready for review Quiet

95290[FEATURE] Add event to render content in the file list

Konrad Michalik CR +1 V +1 Hard +307 −0 updated 09/30/26, 14:51

Commit message

The new PSR-14 event BeforeFileListIsRenderedEvent allows extensions
to render additional markup above and below the file listing of the
Media module.

The page module (ModifyPageLayoutContentEvent) and the record list
(RenderAdditionalContentToRecordListEvent) have offered such an
extension point for a long time, while FileListController did not
dispatch any event at all. Extensions that wanted to add content to
the file list had no supported way to do so and had to manipulate the
rendered response instead, which breaks on every markup change.

Besides the request, the event provides the Folder currently being
displayed, so listeners do not have to resolve it from request
parameters. The event is dispatched in processRequest() only, so it
does not fire when no folder could be resolved - there would be no
folder to relate the content to.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/90/95290/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/90/95290/3 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Daniel Windloff +1
  • Verified V +1 Needs a vote
    • Daniel Windloff +1
    • core-ci +1 CI

Merge conflicts 4

Issues 1

Files 6

Review log 69

  1. Konrad Michalik uploaded patch set 1 08/12/26, 12:04

  2. core-ci voted on patch set 1 V +1 08/12/26, 12:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106520

  3. Konrad Michalik rebased onto patch set 2 V +1 08/14/26, 18:00

  4. core-ci voted on patch set 2 V +1 08/14/26, 18:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106709

  5. Daniel Windloff commented on patch set 2 V +1 09/04/26, 09:01

    Feature-110435-NewPSR-14BeforeFileListIsRenderedEvent.rst:27

    The phrasing seems me as odd.
  6. Konrad Michalik uploaded patch set 3 V +1 09/17/26, 14:47

  7. core-ci voted on patch set 3 V +1 09/17/26, 14:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108757

  8. Daniel Windloff commented on patch set 3 CR +1 V +1 09/30/26, 14:16

    Feature-110435-NewPSR-14BeforeFileListIsRenderedEvent.rst:27 Reply

    Done
  9. Benni Mack commented on patch set 3 09/30/26, 14:51

    FileListController.php:272 Unresolved

    another option is to hand in the $view itself so it can be modified even better (also by overriding the templates it's more useful maybe?)