forked from in2code-de/lux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
82 lines (74 loc) · 2.76 KB
/
ext_localconf.php
File metadata and controls
82 lines (74 loc) · 2.76 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Include Frontend Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Lux',
'Fe',
[
\In2code\Lux\Controller\FrontendController::class => 'dispatchRequest'
],
[
\In2code\Lux\Controller\FrontendController::class => 'dispatchRequest'
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Lux',
'Pi1',
[
\In2code\Lux\Controller\FrontendController::class => 'trackingOptOut'
],
[
\In2code\Lux\Controller\FrontendController::class => ''
]
);
/**
* Add page TSConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:lux/Configuration/TSConfig/Lux.typoscript\''
);
/**
* Hooks
*/
// Show page overview (leads or analysis) in page module
if (\In2code\Lux\Utility\ConfigurationUtility::isPageOverviewDisabled() === false) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][1634669927]
= \In2code\Lux\Hooks\PageOverview::class . '->render';
}
// Linkhandler for Link Listener
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'][]
= \In2code\Lux\Hooks\LuxLinkListenerLinkhandler::class . '->postProcessTypoLink';
/**
* CK editor configuration
*/
if (\In2code\Lux\Utility\ConfigurationUtility::isCkEditorConfigurationNeeded()) {
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['lux'] = 'EXT:lux/Configuration/Yaml/CkEditor.yaml';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'RTE.default.preset = lux'
);
}
/**
* Fluid Namespace
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['lux'][] = 'In2code\Lux\ViewHelpers';
/**
* Caching framework
*/
$cacheKeys = [
\In2code\Lux\Domain\Service\VisitorImageService::CACHE_KEY,
\In2code\Lux\Domain\Cache\CacheLayer::CACHE_KEY
];
foreach ($cacheKeys as $cacheKey) {
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheKey] = [];
}
}
\In2code\Lux\Utility\CacheLayerUtility::registerCacheLayers();
}
);