forked from xima-media/xm_formcycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
78 lines (71 loc) · 2.73 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
70
71
72
73
74
75
76
77
78
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
$extConf = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xm_formcycle'];
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version()) > 10000000) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Xima.xm_formcycle',
'Xmformcycle',
[
\Xima\XmFormcycle\Controller\FormcycleController::class => 'list, formContent',
],
// non-cacheable actions
$extConf['integrationMode'] == 'integrated' ? [\Xima\XmFormcycle\Controller\FormcycleController::class => 'list'] : []
);
} else {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Xima.xm_formcycle',
'Xmformcycle',
[
'Formcycle' => 'list, formContent',
],
// non-cacheable actions
$extConf['integrationMode'] == 'integrated' ? ['Formcycle' => 'list'] : []
);
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1593170596] = [
'nodeName' => 'startNewElement',
'priority' => 40,
'class' => \Xima\XmFormcycle\Form\Element\StartNewElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1593173971] = [
'nodeName' => 'startOpenElement',
'priority' => 40,
'class' => \Xima\XmFormcycle\Form\Element\StartOpenElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1593174782] = [
'nodeName' => 'fcElement',
'priority' => 40,
'class' => \Xima\XmFormcycle\Form\Element\FcElement::class,
];
/**
* Icon Registry
*/
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'xmformcycle-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:xm_formcycle/Resources/Public/Icons/xmformcycle_default.png']
);
/**
* Wizards
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'mod {
wizards.newContentElement.wizardItems.plugins {
elements {
search {
iconIdentifier = xmformcycle-icon
title = LLL:EXT:xm_formcycle/Resources/Private/Language/locallang.xlf:tx_xmformcycle_domain_model_formcycle.wizard.name
description = LLL:EXT:xm_formcycle/Resources/Private/Language/locallang.xlf:tx_xmformcycle_domain_model_formcycle.wizard.description
tt_content_defValues {
CType = list
list_type = xmformcycle_xmformcycle
}
}
}
show = *
}
}'
);