forked from IchHabRecht/filefill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
68 lines (61 loc) · 3.18 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') || die();
call_user_func(function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing']['filefill'] =
\IchHabRecht\Filefill\Hooks\FlexFormToolsHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['filefill_missing'] =
\IchHabRecht\Filefill\Hooks\ResetMissingFiles::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['filefill_delete'] =
\IchHabRecht\Filefill\Hooks\DeleteFiles::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1583747569] = [
'nodeName' => 'showMissingFiles',
'priority' => 40,
'class' => \IchHabRecht\Filefill\Form\Element\ShowMissingFiles::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1583933371] = [
'nodeName' => 'showDeleteFiles',
'priority' => 40,
'class' => \IchHabRecht\Filefill\Form\Element\ShowDeleteFiles::class,
];
if (empty($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['filefill']['resourceHandler'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['filefill']['resourceHandler'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['filefill']['resourceHandler'] = array_merge(
[
'domain' => [
'title' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.domain',
'config' => [
'label' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.url',
'config' => [
'type' => 'input',
'eval' => 'required',
],
],
'handler' => \IchHabRecht\Filefill\Resource\Domain\DomainResource::class,
],
'sys_domain' => [
'title' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.sys_domain',
'config' => [
'label' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.sys_domain',
'config' => [
'type' => 'check',
'default' => '1',
],
],
'handler' => \IchHabRecht\Filefill\Resource\Domain\SysDomainResource::class,
],
'placeholder' => [
'title' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.placeholder_com',
'config' => [
'label' => 'LLL:EXT:filefill/Resources/Private/Language/locallang_db.xlf:sys_file_storage.filefill.placeholder_com',
'config' => [
'type' => 'check',
'default' => '1',
],
],
'handler' => \IchHabRecht\Filefill\Resource\Placeholder\PlaceholderResource::class,
],
],
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['filefill']['resourceHandler']
);
});