-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathext_localconf.php
More file actions
40 lines (33 loc) · 1.41 KB
/
Copy pathext_localconf.php
File metadata and controls
40 lines (33 loc) · 1.41 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
<?php
declare(strict_types=1);
defined('TYPO3') || die();
use Bobosch\OdsOsm\Backend\FormDataProvider\FlexFormManipulation;
use Bobosch\OdsOsm\Evaluation\LonLat;
use Bobosch\OdsOsm\TceMain;
use Bobosch\OdsOsm\Wizard\CoordinatepickerWizard;
use Bobosch\OdsOsm\Wizard\VectordrawWizard;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaFlexPrepare;
use TYPO3\CMS\Backend\Form\FormDataProvider\TcaFlexProcess;
$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,
];