From 48ed2b96916aecce89cd8f6b60666d97179011dc Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Sun, 28 Jul 2024 18:06:02 +0200 Subject: [PATCH] [FEATURE] Add default TCA columns from ctrl (#280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [FEATURE] Add default TCA columns from ctrl References: https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/967 Releases: main * Update Configuration/TCA/tx_examples_dummy.php Co-authored-by: Stefan Frömken * Update Configuration/TCA/tx_examples_dummy.php --------- Co-authored-by: Stefan Frömken --- Configuration/TCA/tx_examples_dummy.php | 18 ++---------------- Configuration/TCA/tx_examples_haiku.php | 15 --------------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/Configuration/TCA/tx_examples_dummy.php b/Configuration/TCA/tx_examples_dummy.php index 5657762..8eb7900 100644 --- a/Configuration/TCA/tx_examples_dummy.php +++ b/Configuration/TCA/tx_examples_dummy.php @@ -34,20 +34,6 @@ ], ], 'columns' => [ - 'hidden' => [ - 'exclude' => true, - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', - 'config' => [ - 'type' => 'check', - 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 'label' => '', - 'invertStateDisplay' => true, - ], - ], - ], - ], 'record_type' => [ 'exclude' => 0, 'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang_db.xlf:tx_examples_dummy.record_type', @@ -106,8 +92,8 @@ // (paste this into the description field: This is a very long text that will not wrap when I get to the end of the box, which is very far away, away, away, away, away, away) // '0' => array('showitem' => 'hidden, record_type, title, description;;;nowrap, some_date;;1 '), // Additional types - '1' => ['showitem' => 'record_type, title '], - '2' => ['showitem' => 'title, some_date, hidden, record_type '], + '1' => ['showitem' => 'record_type, title, hidden,'], + '2' => ['showitem' => 'title, some_date, hidden, record_type,'], ], 'palettes' => [ '1' => ['showitem' => 'enforce_date'], diff --git a/Configuration/TCA/tx_examples_haiku.php b/Configuration/TCA/tx_examples_haiku.php index 1ff5793..19da953 100644 --- a/Configuration/TCA/tx_examples_haiku.php +++ b/Configuration/TCA/tx_examples_haiku.php @@ -53,21 +53,6 @@ 'maxSingleDBListItems' => 20, ], 'columns' => [ - 'hidden' => [ - 'exclude' => true, - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', - 'description' => 'LLL:EXT:examples/Resources/Private/Language/locallang_db.xlf:tx_examples_haiku.hidden.description', - 'config' => [ - 'type' => 'check', - 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 'label' => '', - 'invertStateDisplay' => true, - ], - ], - ], - ], 'title' => [ 'exclude' => 0, 'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang_db.xlf:tx_examples_haiku.title',