[BUGFIX] EXT:form - Remove any dependency to CSC or FSC 53/44553/5
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Thu, 5 Nov 2015 14:47:56 +0000 (15:47 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 6 Nov 2015 08:03:28 +0000 (09:03 +0100)
Add the palettes "visibility" and "frames" to tt_content if they are
not available.

Resolves: #70466
Releases: master
Change-Id: Ifa6cada6896d95dc224fdebe573701d17ac11e06
Reviewed-on: https://review.typo3.org/44553
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Josef Glatz <jousch@gmail.com>
Tested-by: Josef Glatz <jousch@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/form/Configuration/TCA/Overrides/tt_content.php

index ee45123..bfa2e88 100644 (file)
@@ -48,6 +48,25 @@ $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['wizards']['forms
     )
 );
 
+// Add palettes if they are not available
+if (!isset($GLOBALS['TCA']['tt_content']['palettes']['visibility'])) {
+    $GLOBALS['TCA']['tt_content']['palettes']['visibility'] = array(
+        'showitem' => '
+            hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:hidden_formlabel,
+            sectionIndex;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:sectionIndex_formlabel,
+            linkToTop;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:linkToTop_formlabel
+        ',
+    );
+}
+
+if (!isset($GLOBALS['TCA']['tt_content']['palettes']['frames'])) {
+    $GLOBALS['TCA']['tt_content']['palettes']['frames'] = array(
+        'showitem' => '
+            layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:layout_formlabel
+        ',
+    );
+}
+
 $GLOBALS['TCA']['tt_content']['types']['mailform']['showitem'] = '
        --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
        --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,