-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathext_localconf.php
69 lines (60 loc) · 2.51 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
69
<?php
defined('TYPO3') || die();
use Bobosch\OdsOsm\Backend\FormDataProvider\FlexFormManipulation;
use Bobosch\OdsOsm\Evaluation\LonLat;
use Bobosch\OdsOsm\TceMain;
use Bobosch\OdsOsm\Updates\FileLocationUpdater;
use Bobosch\OdsOsm\Updates\MigrateSettings;
use Bobosch\OdsOsm\Wizard\CoordinatepickerWizard;
use Bobosch\OdsOsm\Wizard\VectordrawWizard;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaFlexPrepare;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaFlexProcess;
use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
ExtensionManagementUtility::addPItoST43(
'ods_osm',
'',
'_pi1',
'list_type',
1
);
ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.plugins.elements.odsosm {
iconIdentifier = ods_osm
title = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_title
description = LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:pi1_plus_wiz_description
tt_content_defValues {
CType = list
list_type = ods_osm_pi1
}
}
mod.wizards.newContentElement.wizardItems.plugins.show := addToList(odsosm)
');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = TceMain::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][LonLat::class] = '';
// Modify flexform fields since core 8.5 via formEngine: Inject a data provider between TcaFlexPrepare and TcaFlexProcess
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][FlexFormManipulation::class] = [
'depends' => [
TcaFlexPrepare::class,
],
'before' => [
TcaFlexProcess::class,
],
];
// Add wizard with map for setting geo location
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1616876515] = [
'nodeName' => 'coordinatepickerWizard',
'priority' => 30,
'class' => CoordinatepickerWizard::class
];
// Add wizard with map for drawing GeoJSON data
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1616968355] = [
'nodeName' => 'vectordrawWizard',
'priority' => 30,
'class' => VectordrawWizard::class
];
# add migration wizards
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['odsOsmFileLocationUpdater'] = FileLocationUpdater::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['odsOsmMigrateSettings'] = MigrateSettings::class;