-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
34 lines (25 loc) · 1.12 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
<?php
declare(strict_types=1);
defined('TYPO3_MODE') || die('Access denied.');
(function ($extKey='maps') {
$poiDoktype = 116;
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import "EXT:maps/Configuration/TSconfig/Page/setup.tsconfig"'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants(
'@import "EXT:maps/Configuration/TypoScript/constants.typoscript"'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'@import "EXT:maps/Configuration/TypoScript/setup.typoscript"'
);
// Add wizard with map for setting geo location
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1546531781] = [
'nodeName' => 'locationMapWizard',
'priority' => 30,
'class' => \WerkraumMedia\Maps\FormEngine\FieldControl\LocationMapWizard::class
];
// Allow backend users to drag and drop the new page type:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'options.pageTree.doktypesToShowInNewPageDragArea := addToList(' . $poiDoktype . ')'
);
})();