Skip to content

Commit

Permalink
[FEATURE] Add default TCA columns from ctrl
Browse files Browse the repository at this point in the history
References: TYPO3-Documentation/Changelog-To-Doc#967
Releases: main
  • Loading branch information
linawolf committed Jul 14, 2024
1 parent 28d8e6e commit 417f10f
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' => 'hidden, record_type, title '],
'2' => ['showitem' => 'hidden, 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 417f10f

Please sign in to comment.