-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathext_localconf.php
More file actions
executable file
·36 lines (29 loc) · 2.11 KB
/
ext_localconf.php
File metadata and controls
executable file
·36 lines (29 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function () {
// Backend features
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']['getButtonsHook'][] =
\FBIT\PageReferences\Hooks\Backend\Template\Components\ButtonBar\GetButtonsHook\GenerateAdditionalModuleButtons::class . '->getButtons';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] =
\FBIT\PageReferences\Hooks\Backend\Controller\PageLayoutController\DrawHeaderHook\PagePropertiesReferencedFlashMessage::class . '->addPagePropertiesReferencedFlashMessage';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] =
\FBIT\PageReferences\Hooks\Core\DataHandling\DataHandler\ProcessCmdmapClass\DontHideRecordsWhenConvertingContentReferencesToCopies::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
\FBIT\PageReferences\Hooks\Core\DataHandling\DataHandler\ProcessDatamapClass\UpdateReferencePageProperties::class;
if (TYPO3_MODE === 'BE') {
$pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
$pageRenderer->loadRequireJsModule('TYPO3/CMS/FbitPagereferences/PageReferences');
}
// Frontend features
$GLOBALS['TYPO3_CONF_VARS']['SYS']['linkHandler']['page'] =
\FBIT\PageReferences\Overrides\TYPO3\CMS\Core\LinkHandling\PageLinkHandler::class;
$extensionConfiguration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get('fbit_pagereferences');
if ((int)$extensionConfiguration['typoLinkCodecServiceOverrideEnabled'] === 1) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Frontend\Service\TypoLinkCodecService::class]['className'] =
\FBIT\PageReferences\Overrides\TYPO3\CMS\Frontend\Service\TypoLinkCodecService::class;
}
}
);