-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
45 lines (42 loc) · 1.35 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
38
39
40
41
42
43
44
45
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
call_user_func(
function () {
/**
* Include Frontend Plugins
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Osm',
'Markers',
[\In2code\Osm\Controller\MapController::class => 'getMarkers',]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Osm',
'Pi1',
[\In2code\Osm\Controller\MapController::class => 'plugin1',]
);
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_address')) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Osm',
'Pi2',
[\In2code\Osm\Controller\MapController::class => 'plugin2',]
);
}
/**
* Add page TSConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:osm/Configuration/TSConfig/Osm.typoscript\''
);
/**
* Add user func for TCA fields
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1600424607] = [
'nodeName' => 'osm_pi1_information',
'priority' => 50,
'class' => \In2code\Osm\Tca\Information::class,
];
}
);