forked from programmfabrik/typo3-easydb-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
23 lines (20 loc) · 953 Bytes
/
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
<?php
use Easydb\Typo3Integration\Form\Element\EasidbFileInfo;
use Easydb\Typo3Integration\Hook\FileIndexRepository;
use Easydb\Typo3Integration\Hook\FileListButtonHook;
use TYPO3\CMS\Core\Resource\Index\FileIndexRepository as CoreFileIndexRepository;
(static function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']['getButtonsHook']['EasydbFileListButton'] =
FileListButtonHook::class . '->getButtons';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][CoreFileIndexRepository::class] = ['className' => FileIndexRepository::class];
$GLOBALS['TYPO3_CONF_VARS']['BE']['defaultUC']['easydb']['windowSize'] = [
'width' => '650',
'height' => '600',
];
// new field types
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1524490067] = [
'nodeName' => 'easidbInfo',
'priority' => 30,
'class' => EasidbFileInfo::class,
];
})();