ds-site/ext_localconf.php
Daniel Siepmann 1279334ed1 Use PageLayoutHeader hook instead of new PageLayoutView hook
Do not overcomplicate the implementation.
Just add page info to rendered page.
2020-01-08 19:15:08 +01:00

30 lines
962 B
PHP

<?php
(function (string $extKey) {
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TYPO3_CONF_VARS'], [
'RTE' => [
'Presets' => [
'default' => 'EXT:ds_site/Configuration/RTE/Default.yaml',
],
],
'SC_OPTIONS' => [
'cms/layout/db_layout.php' => [
'drawHeaderHook' => [
$extKey => \DanielSiepmann\DsSite\Hooks\Backend\PageLayoutHeader::class . '->render',
],
],
],
'SYS' => [
'fluid' => [
'namespaces' => [
'f' => [
$extKey => 'DanielSiepmann\DsSite\ViewHelpers',
],
],
],
],
]);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
"@import 'EXT:ds_site/Configuration/UserTSconfig/*.tsconfig'"
);
})('ds_site');