Skip to content

Commit

Permalink
[TASK] change TCA sys_language_uid and hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
mesosa committed Apr 14, 2022
1 parent 4cf99c8 commit c7a424a
Showing 1 changed file with 30 additions and 18 deletions.
48 changes: 30 additions & 18 deletions Configuration/TCA/tx_pxaitemlist_domain_model_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,23 @@
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
'config' => array(
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
),
),
),
'renderType' => 'selectSingle',
'special' => 'languages',
'items' => [
[
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
-1,
'flags-multiple',
],
],
'default' => 0,
],
],
'l10n_parent' => array(
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
Expand Down Expand Up @@ -77,13 +81,21 @@
'max' => 255,
)
),
'hidden' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'hidden' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
'config' => [
'type' => 'check',
),
),
'renderType' => 'checkboxToggle',
'items' => [
[
0 => '',
1 => '',
'invertStateDisplay' => true,
],
],
],
],
'starttime' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
Expand Down

0 comments on commit c7a424a

Please sign in to comment.