-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathext_localconf.php
More file actions
64 lines (52 loc) · 2.09 KB
/
ext_localconf.php
File metadata and controls
64 lines (52 loc) · 2.09 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
<?php
declare(strict_types=1);
defined('TYPO3') or die();
use Evoweb\StoreFinder\Controller\MapController;
use Evoweb\StoreFinder\Form\Element\ModifyLocationMap;
use Evoweb\StoreFinder\Form\FormDataGroup\LocationCountryItems;
use Evoweb\StoreFinder\Hooks\TceMainListener;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems as TcaSelectItems;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
$cacheConfigurations = & $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'];
if (!is_array($cacheConfigurations['store_finder_coordinate_cache'] ?? null)) {
$cacheConfigurations['store_finder_coordinate_cache'] = [
'groups' => [ 'system' ],
];
}
if (!is_array($cacheConfigurations['store_finder_middleware_cache'] ?? null)) {
$cacheConfigurations['store_finder_middleware_cache'] = [
'groups' => [ 'pages' ],
];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['location'] = 'tx_storefinder_domain_model_location';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['store_finder'] =
TceMainListener::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1549261866] = [
'nodeName' => 'modifyLocationMap',
'priority' => '70',
'class' => ModifyLocationMap::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][LocationCountryItems::class] = [
'depends' => [ TcaSelectItems::class ]
];
ExtensionUtility::configurePlugin(
'StoreFinder',
'Map',
[ MapController::class => 'map, search, show' ],
[ MapController::class => 'map, search, show' ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'StoreFinder',
'Cached',
[ MapController::class => 'cachedMap, map, search, show' ],
[ MapController::class => 'map, search, show' ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'StoreFinder',
'Show',
[ MapController::class => 'show' ],
[ MapController::class => 'show' ],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);