-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathext_localconf.php
47 lines (39 loc) · 1.91 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
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
// Apply PageTSconfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form_legacy/Configuration/PageTS/modWizards.ts">'
);
// Add default User TS Config FORM configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form_legacy/Configuration/UserTSconfig/userTSConfig.txt">'
);
// Backend view
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] =
\TYPO3\CMS\Form\Hooks\PageLayoutView\MailformPreviewRenderer::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1440772316] = [
'nodeName' => 'formwizard',
'priority' => 40,
'class' => \TYPO3\CMS\Form\View\Wizard\Element\FormWizardElement::class,
];
}
// Extbase handling
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
\TYPO3\CMS\Form\Domain\Property\TypeConverter\ArrayToValidationElementConverter::class
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'TYPO3.CMS.Form',
'Form',
['Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess'],
['Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess']
);
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)
->connect(
\TYPO3\CMS\Form\Domain\Builder\FormBuilder::class,
'txFormHandleIncomingValues',
\TYPO3\CMS\Form\Hooks\HandleIncomingFormValues::class,
'handleIncomingFormValues'
);
// Register the extbase plugin as shorthand for typoscript 10 = FORM
$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']['FORM'] = \TYPO3\CMS\Form\ContentObject\FormContentObject::class;