Commit 03848901 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[TASK] Move TypoScript inclusion into ext_localconf

The Form configuration is now included inline instead
of a separate file.

Resolves: #84861
Releases: master
Change-Id: I06b0ca7b0f650c6701069ab3f11005e78b48d67a
Reviewed-on: https://review.typo3.org/56799


Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 1d39413e
......@@ -20,6 +20,24 @@ call_user_func(function () {
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">'
);
// Add module configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_form {
settings {
yamlConfigurations {
10 = EXT:form/Configuration/Yaml/BaseSetup.yaml
20 = EXT:form/Configuration/Yaml/FormEditorSetup.yaml
30 = EXT:form/Configuration/Yaml/FormEngineSetup.yaml
}
}
view {
templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
}
}'
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
= \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
......
module.tx_form {
settings {
yamlConfigurations {
10 = EXT:form/Configuration/Yaml/BaseSetup.yaml
20 = EXT:form/Configuration/Yaml/FormEditorSetup.yaml
30 = EXT:form/Configuration/Yaml/FormEngineSetup.yaml
}
}
view {
templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment