-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ext_localconf.php
executable file
·37 lines (34 loc) · 1.41 KB
/
ext_localconf.php
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
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
defined('TYPO3') || die('Access denied.');
(function () {
if (empty($GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['microtemplate'])) {
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
if ($versionInformation->getMajorVersion() >= 12) {
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['microtemplate'] = 'EXT:microtemplate/Configuration/RTE/Microtemplate.yaml';
} else {
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['microtemplate'] = 'EXT:microtemplate/Configuration/RTE/Microtemplate_11LTS.yaml';
}
}
# Check if ext:personnel is loaded and add TS constant
if (ExtensionManagementUtility::isLoaded('personnel')) {
ExtensionManagementUtility::addTypoScriptConstants('
microtemplate.personnelIsLoaded = 1
');
} else {
ExtensionManagementUtility::addTypoScriptConstants('
microtemplate.personnelIsLoaded = 0
');
}
if (ExtensionManagementUtility::isLoaded('pagelist')) {
ExtensionManagementUtility::addTypoScriptConstants('
microtemplate.pagelistIsLoaded = 1
');
} else {
ExtensionManagementUtility::addTypoScriptConstants('
microtemplate.pagelistIsLoaded = 0
');
}
})();