How can I override Backend Fluid Templates?

Viewed 179
1 Answers

The mentioned feature is only for custom modules and not to be meant to change existing backend modules.

One way which is often used, e.g. in EXT:yoast_seo, is the hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'] of the PageLayoutController.


You can also manipulate the Toolbar by using the hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']. For inspiration you can checkout this code https://github.com/georgringer/page_speed/blob/feature/pagemodule/Classes/Hooks/ButtonBarHook.php (only in the branch feature/pagemodule and only a PoC)

Related