-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathext_localconf.php
More file actions
54 lines (47 loc) · 2.71 KB
/
ext_localconf.php
File metadata and controls
54 lines (47 loc) · 2.71 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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
use TYPO3\CMS\Core\Information\Typo3Version;
defined('TYPO3') || die();
if ((new(Typo3Version::class))->getMajorVersion() >= 12) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1488914437] = [
'nodeName' => 'belayoutwizard',
'priority' => 50,
'class' => \GridElementsTeam\Gridelements\Wizard\GridelementsBackendLayoutWizardElement::class,
];
if (!empty($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['gridelements']['nestingInListModule'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Backend\RecordList\DatabaseRecordList::class] = ['className' => \GridElementsTeam\Gridelements\Xclass\DatabaseRecordList::class];
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'gridelements',
'setup',
'@import \'EXT:gridelements/Configuration/TypoScript/backend.typoscript\''
);
} else {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1488914437] = [
'nodeName' => 'belayoutwizard',
'priority' => 50,
'class' => \GridElementsTeam\Gridelements\Wizard\GridelementsBackendLayoutWizardElement11::class,
];
if (!empty($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['gridelements']['nestingInListModule'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::class] = ['className' => \GridElementsTeam\Gridelements\Xclass\DatabaseRecordList11::class];
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'gridelements',
'setup',
'@import \'EXT:gridelements/Configuration/TypoScript/backend11.typoscript\''
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
options.saveDocNew.tx_gridelements_backend_layout=1
');
// Add colPos fixer task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\GridElementsTeam\Gridelements\Task\GridelementsColPosFixer::class] = [
'extension' => 'gridelements',
'title' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang.xlf:gridelementsColPosFixer.name',
'description' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang.xlf:gridelementsColPosFixer.description'
];
// Add number of children fixer task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\GridElementsTeam\Gridelements\Task\GridelementsNumberOfChildrenFixer::class] = [
'extension' => 'gridelements',
'title' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang.xlf:gridelementsNumberOfChildrenFixer.name',
'description' => 'LLL:EXT:gridelements/Resources/Private/Language/locallang.xlf:gridelementsNumberOfChildrenFixer.description'
];