[!!!][TASK] EXT:form - split typoscript includes 00/51200/8
authorJosef Glatz <josefglatz@gmail.com>
Sun, 8 Jan 2017 14:30:36 +0000 (15:30 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Tue, 10 Jan 2017 11:12:39 +0000 (12:12 +0100)
1) Move backend module specific TypoScript directly to
`EXT:form/ext_typoscript_setup.txt`. It should be loaded
automatically, when EXT:form is installed.

2) Do not load frontend specific TypoScript automatically
and make it available through
`ExtensionManagementUtility::addStaticFile()`. As this method
do only TCA-related changes it's ok to put it into `TCA/Overrides`.

Resolves: #79201
Releases: master
Change-Id: I4c3f51b4bbd0cb472358e97350eed09ecd73f4e6
Reviewed-on: https://review.typo3.org/51200
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-79201-ExtFormSplitTyposcriptIncludes.rst [new file with mode: 0644]
typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php [new file with mode: 0644]
typo3/sysext/form/Configuration/TypoScript/backend.txt [deleted file]
typo3/sysext/form/ext_typoscript_setup.txt

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-79201-ExtFormSplitTyposcriptIncludes.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-79201-ExtFormSplitTyposcriptIncludes.rst
new file mode 100644 (file)
index 0000000..84da622
--- /dev/null
@@ -0,0 +1,34 @@
+.. include:: ../../Includes.txt
+
+======================================================
+Breaking: #79201 - EXT:form: Split TypoScript Includes
+======================================================
+
+See :issue:`79201`
+
+Description
+===========
+
+The frontend specific TypoScript setup for EXT:form isn't loaded automatically anymore and must be added manually through
+static includes. With this change a TYPO3 integrator could easier decide at which place the extension Typoscript is included.
+
+
+Impact
+======
+
+Using the extension without adding static includes of EXT:form will result in an erroneous frontend output.
+
+
+Affected Installations
+======================
+
+Any installation with activated EXT:form extension.
+
+
+Migration
+=========
+
+Make sure to include the static TypoScript "Form" in your (root) template record. Same procedure as with static includes
+of fluid_styled_content or css_styled_content.
+
+.. index:: ext:form, TypoScript
diff --git a/typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php b/typo3/sysext/form/Configuration/TCA/Overrides/sys_template.php
new file mode 100644 (file)
index 0000000..9b6ed1a
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+call_user_func(function () {
+    TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
+        'form',
+        'Configuration/TypoScript/',
+        'Form'
+    );
+});
diff --git a/typo3/sysext/form/Configuration/TypoScript/backend.txt b/typo3/sysext/form/Configuration/TypoScript/backend.txt
deleted file mode 100644 (file)
index 20604aa..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-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/
-    }
-}
\ No newline at end of file
index a47e55e..ec0c566 100644 (file)
@@ -1,2 +1,14 @@
-<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/TypoScript/setup.txt">
-<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/TypoScript/backend.txt">
\ No newline at end of file
+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/
+    }
+}