-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
68 lines (60 loc) · 2.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
defined('TYPO3_MODE') or die();
call_user_func(
function () {
# register plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Pixelant.pxa_dealers',
'Pxadealers',
[
'Dealers' => 'map, search',
'Categories' => 'categoriesFilter',
'Countries' => 'countriesFilter',
'Search' => 'form, suggest'
],
// non-cacheable actions
[
'Dealers' => 'search',
'Search' => 'suggest'
]
);
// @codingStandardsIgnoreStart
// Hook for flexform processing
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\\CMS\\Core\\Configuration\\FlexForm\FlexFormTools']['flexParsing']['pxa_dealers'] = \Pixelant\PxaDealers\Hook\FlexFormHook::class;
// @codingStandardsIgnoreEnd
// Register a node.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1604915385] = [
'nodeName' => 'pxaDealersGoogleMaps',
'priority' => 40,
'class' => \Pixelant\PxaDealers\Form\Element\GoogleMapsElement::class,
];
// Add page TS
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'@import \'EXT:pxa_dealers/Configuration/PageTSconfig/ContentElementWizard.ts\''
);
# register icons
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'ext-pxadealers-wizard-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:pxa_dealers/Resources/Public/Icons/wizard_icon.svg']
);
// hook for extension BE view
// @codingStandardsIgnoreStart
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['pxadealers_pxadealers']['pxa_dealers'] = \Pixelant\PxaDealers\Hook\PageLayoutView::class . '->getInfo';
// @codingStandardsIgnoreEnd
// Caching for results from google api
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pxa_dealers'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pxa_dealers'] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'options' => [
'defaultLifetime' => 3600 * 24 * 7
]
];
}
}
);