[TASK] Add t3editor for TSConfig fields 29/47629/3
authorFrank Naegler <frank.naegler@typo3.org>
Tue, 12 Apr 2016 16:13:48 +0000 (18:13 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 17 Aug 2017 18:36:01 +0000 (20:36 +0200)
This patch add the t3edtor to the TSConfig fields of be_users,
be_groups and pages table.
TSConfig support is still missing, but it is more comfortable.

Resolves: #82120
Releases: master
Change-Id: I417e212c178693673e3def6aa70365d10a595057
Reviewed-on: https://review.typo3.org/47629
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/t3editor/Configuration/TCA/Overrides/be_groups.php [new file with mode: 0644]
typo3/sysext/t3editor/Configuration/TCA/Overrides/be_users.php [new file with mode: 0644]
typo3/sysext/t3editor/Configuration/TCA/Overrides/pages.php [new file with mode: 0644]

diff --git a/typo3/sysext/t3editor/Configuration/TCA/Overrides/be_groups.php b/typo3/sysext/t3editor/Configuration/TCA/Overrides/be_groups.php
new file mode 100644 (file)
index 0000000..9c9355d
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+// Activate t3editor for sys_template config
+if (is_array($GLOBALS['TCA']['be_groups']['columns']['TSconfig']['config'])) {
+    $GLOBALS['TCA']['be_groups']['columns']['TSconfig']['config']['renderType'] = 't3editor';
+    $GLOBALS['TCA']['be_groups']['columns']['TSconfig']['config']['format'] = 'typoscript';
+}
diff --git a/typo3/sysext/t3editor/Configuration/TCA/Overrides/be_users.php b/typo3/sysext/t3editor/Configuration/TCA/Overrides/be_users.php
new file mode 100644 (file)
index 0000000..4d99dc8
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+// Activate t3editor for sys_template config
+if (is_array($GLOBALS['TCA']['be_users']['columns']['TSconfig']['config'])) {
+    $GLOBALS['TCA']['be_users']['columns']['TSconfig']['config']['renderType'] = 't3editor';
+    $GLOBALS['TCA']['be_users']['columns']['TSconfig']['config']['format'] = 'typoscript';
+}
diff --git a/typo3/sysext/t3editor/Configuration/TCA/Overrides/pages.php b/typo3/sysext/t3editor/Configuration/TCA/Overrides/pages.php
new file mode 100644 (file)
index 0000000..2318349
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+defined('TYPO3_MODE') or die();
+
+// Activate t3editor for sys_template config
+if (is_array($GLOBALS['TCA']['pages']['columns']['TSconfig']['config'])) {
+    $GLOBALS['TCA']['pages']['columns']['TSconfig']['config']['renderType'] = 't3editor';
+    $GLOBALS['TCA']['pages']['columns']['TSconfig']['config']['format'] = 'typoscript';
+}