Skip to content

Commit

Permalink
[FEATURE] Add default TCA columns from ctrl (#280)
Browse files Browse the repository at this point in the history
* [FEATURE] Add default TCA columns from ctrl

References: TYPO3-Documentation/Changelog-To-Doc#967
Releases: main

* Update Configuration/TCA/tx_examples_dummy.php

Co-authored-by: Stefan Frömken <[email protected]>

* Update Configuration/TCA/tx_examples_dummy.php

---------

Co-authored-by: Stefan Frömken <[email protected]>
  • Loading branch information
linawolf and froemken authored Jul 28, 2024
1 parent 28d8e6e commit 48ed2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
18 changes: 2 additions & 16 deletions Configuration/TCA/tx_examples_dummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down
15 changes: 0 additions & 15 deletions Configuration/TCA/tx_examples_haiku.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 48ed2b9

Please sign in to comment.