-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathext_localconf.php
More file actions
32 lines (26 loc) · 1.26 KB
/
ext_localconf.php
File metadata and controls
32 lines (26 loc) · 1.26 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
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TsConfig/Page.txt">');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Sonority.' . $_EXTKEY, 'Pi1',
[
'Location' => 'map,list,search',
'Ajax' => 'search'
],
[
'Ajax' => 'search'
]
);
// Register eID for ajax action-call
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['geolocations'] = 'EXT:geolocations/Classes/Eid/AjaxBootstrap.php';
// Custom cache, done with the caching framework
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_geolocations_category'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_geolocations_category'] = [];
}
// Define state cache, if not already defined
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_geolocations_address'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_geolocations_address'] = [
'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend',
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend',
];
}