#93216Include addRootLineFields in page tree controller
Description
Given:
- an own overlay for pages should be added using the $GLOBALS[‘TYPO3_CONF_VARS’][‘SC_OPTIONS’][\TYPO3\CMS\Core\Imaging\IconFactory::class][‘overrideIconOverlay’]
- coming from \TYPO3\CMS\Backend\Controller\Page\TreeController::fetchDataAction only a hardcoded list of fields is available in a page record row
Expectation:
- page records are fetched with fields from $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘addRootLineFields’]
Actual:
- only static fields are fetched (see \TYPO3\CMS\Backend\Controller\Page\TreeController::getPageTreeRepository)
Reviews 2
History 13
-
Gerrit Code Review pushed patch set 1 for 10.4 to change 67339 status
NewUnder Review <span data-processor="relativetime" data-value="2021-01-04T16:35:56+00:00" > 01/04/21, 16:35 </span> -
Gerrit Code Review pushed patch set 1 for master to change 67340 <span data-processor="relativetime" data-value="2021-01-04T17:02:01+00:00" > 01/04/21, 17:02 </span>
-
Benni Mack commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-11-09T11:28:49+00:00" > 11/09/26, 11:28 </span>
Re-checked on main (v15): the premises of this issue no longer exist. $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘addRootLineFields’] was deprecated in 13.2 (#103752) and removed, and the overrideIconOverlay hook was replaced by ModifyRecordOverlayIconIdentifierEvent (#101603). For custom overlays in the page tree, use AfterPageTreeItemsPreparedEvent, which provides each item’s overlayIcon and the page row in _page; additional page fields can be fetched in that listener. Closing as obsolete. If a configurable list of additional page tree fields is needed, please open a feature request.