Skip to content

Commit

Permalink
[TASK] TCA: Add description properties
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 committed Jun 27, 2018
1 parent 3a4d935 commit dd32611
Show file tree
Hide file tree
Showing 16 changed files with 323 additions and 82 deletions.
185 changes: 142 additions & 43 deletions Configuration/TCA/tx_styleguide_elements_basic.php

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions Configuration/TCA/tx_styleguide_elements_group.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@

'group_db_1' => [
'exclude' => 1,
'label' => 'group_db_1 allowed=be_users,be_groups',
'label' => 'group_db_1 allowed=be_users,be_groups description',
'description' => 'field description',
'config' => [
'type' => 'group',
'internal_type' => 'db',
Expand Down Expand Up @@ -180,7 +181,8 @@
],
'group_db_5' => [
'exclude' => 1,
'label' => 'group_db_5 readOnly=1',
'label' => 'group_db_5 readOnly=1 description',
'description' => 'field description',
'config' => [
'type' => 'group',
'internal_type' => 'db',
Expand All @@ -201,7 +203,8 @@

'group_file_1' => [
'exclude' => 1,
'label' => 'group_file_1',
'label' => 'group_file_1 description',
'description' => 'field description',
'config' => [
'type' => 'group',
'internal_type' => 'file',
Expand Down Expand Up @@ -244,7 +247,8 @@

'group_folder_1' => [
'exclude' => 1,
'label' => 'group_folder_1',
'label' => 'group_folder_1 desription',
'description' => 'field description',
'config' => [
'type' => 'group',
'internal_type' => 'folder',
Expand Down Expand Up @@ -282,7 +286,8 @@
<el>
<group_db_1>
<TCEforms>
<label>group_db_1</label>
<label>group_db_1 description</label>
<description>field description</description>
<config>
<type>group</type>
<internal_type>db</internal_type>
Expand Down
15 changes: 13 additions & 2 deletions Configuration/TCA/tx_styleguide_elements_rsainput.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,23 @@

'rsainput_1' => [
'exclude' => 1,
'label' => 'rsainput_1',
'label' => 'rsainput_1 description',
'description' => 'field description',
'config' => [
'type' => 'input',
'renderType' => 'rsaInput',
],
],
'rsainput_2' => [
'exclude' => 1,
'label' => 'rsainput_2 readOnly description',
'description' => 'field description',
'config' => [
'type' => 'input',
'renderType' => 'rsaInput',
'readOnly' => true,
],
],
'rsainput_inline_1' => [
'exclude' => 1,
'label' => 'rsainput_inline_1',
Expand Down Expand Up @@ -209,7 +220,7 @@
'0' => [
'showitem' => '
--div--;rsainput,
rsainput_1,
rsainput_1, rsainput_2,
--div--;inline,
rsainput_inline_1,
--div--;flex,
Expand Down
3 changes: 2 additions & 1 deletion Configuration/TCA/tx_styleguide_elements_rte.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@

'rte_1' => [
'exclude' => 1,
'label' => 'rte_1',
'label' => 'rte_1 description',
'description' => 'field description',
'config' => [
'type' => 'text',
'enableRichtext' => true,
Expand Down
108 changes: 94 additions & 14 deletions Configuration/TCA/tx_styleguide_elements_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@

'select_single_1' => [
'exclude' => 1,
'label' => 'select_single_1 two items, long text',
'label' => 'select_single_1 two items, long text description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
Expand Down Expand Up @@ -263,14 +264,45 @@
],
],
],
'select_single_14' => [
'exclude' => 1,
'label' => 'select_single_14 two items readOnly description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'readOnly' => true,
'items' => [
['bar', 'bar'],
],
],
],


'select_singlebox_1' => [
'exclude' => 1,
'label' => 'select_singlebox_1',
'label' => 'select_singlebox_1 description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingleBox',
'items' => [
['foo 1', 1],
['foo 2', 2],
['divider', '--div--'],
['foo 3', 3],
['foo 4', 4],
],
],
],
'select_singlebox_2' => [
'exclude' => 1,
'label' => 'select_singlebox_1 readOnly description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectSingleBox',
'readOnly' => true,
'items' => [
['foo 1', 1],
['foo 2', 2],
Expand All @@ -284,7 +316,8 @@

'select_checkbox_1' => [
'exclude' => 1,
'label' => 'select_checkbox_1',
'label' => 'select_checkbox_1 description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand Down Expand Up @@ -323,11 +356,27 @@
],
],
],
'select_checkbox_4' => [
// @todo: readOnly select checkbox renders no body?!
'exclude' => 1,
'label' => 'select_checkbox_4 readOnly description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
'readOnly' => true,
'items' => [
['foo 1', 1],
['foo 2', 2],
],
],
],


'select_multiplesidebyside_1' => [
'exclude' => 1,
'label' => 'select_multiplesidebyside_1 autoSizeMax=5, size=3',
'label' => 'select_multiplesidebyside_1 autoSizeMax=5, size=3 description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
Expand Down Expand Up @@ -439,11 +488,35 @@
],
],
],
'select_multiplesidebyside_7' => [
'exclude' => 1,
'label' => 'select_multiplesidebyside_7 readonly description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
['foo 1', 1],
['foo 2', 2],
['a divider', '--div--'],
['foo 3', 3],
['foo 4', 4],
['foo 5', 5],
['foo 6', 6],
],
'readOnly' => true,
'size' => 3,
'autoSizeMax' => 5,
'multiple' => true,
],
],



'select_tree_1' => [
'exclude' => 1,
'label' => 'select_tree_1 pages, showHeader=true, expandAll=true, size=20, order by sorting, static items',
'label' => 'select_tree_1 pages, showHeader=true, expandAll=true, size=20, order by sorting, static items, description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectTree',
Expand Down Expand Up @@ -527,7 +600,8 @@
],
'select_tree_5' => [
'exclude' => 1,
'label' => 'select_tree_5 pages, readOnly, showHeader=true',
'label' => 'select_tree_5 pages, readOnly, showHeader=true description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectTree',
Expand Down Expand Up @@ -602,7 +676,8 @@
<el>
<select_single_1>
<TCEforms>
<label>select_single_1</label>
<label>select_single_1 description</label>
<description>field description</description>
<config>
<type>select</type>
<renderType>selectSingle</renderType>
Expand Down Expand Up @@ -632,7 +707,8 @@
<el>
<select_checkxox_1>
<TCEforms>
<label>select_checkxox_1</label>
<label>select_checkxox_1 description</label>
<description>field description</description>
<config>
<type>select</type>
<renderType>selectCheckBox</renderType>
Expand Down Expand Up @@ -662,7 +738,8 @@
<el>
<select_tree_1>
<TCEforms>
<label>select_tree_1</label>
<label>select_tree_1 description</label>
<description>field description</description>
<config>
<type>select</type>
<renderType>selectTree</renderType>
Expand Down Expand Up @@ -720,7 +797,8 @@
<el>
<select_multiplesidebyside_1>
<TCEforms>
<label>select_multiplesidebyside_1</label>
<label>select_multiplesidebyside_1 description</label>
<description>field description</description>
<config>
<type>select</type>
<renderType>selectMultipleSideBySide</renderType>
Expand Down Expand Up @@ -787,7 +865,8 @@
<el>
<select_tree_1>
<TCEforms>
<label>select_tree_1 pages</label>
<label>select_tree_1 pages description</label>
<description>field description</description>
<config>
<type>select</type>
<renderType>selectTree</renderType>
Expand Down Expand Up @@ -829,14 +908,15 @@
--div--;renderType=selectSingle,
select_single_1, select_single_2, select_single_3, select_single_4, select_single_5,
select_single_7, select_single_12, select_single_8, select_single_13, select_single_10,
select_single_11,
select_single_11, select_single_14,
--div--;renderType=selectSingleBox,
select_singlebox_1,
select_singlebox_1, select_singlebox_2,
--div--;renderType=selectCheckBox,
select_checkbox_1, select_checkbox_2, select_checkbox_3,
select_checkbox_1, select_checkbox_2, select_checkbox_3, select_checkbox_4,
--div--;renderType=selectMultipleSideBySide,
select_multiplesidebyside_1, select_multiplesidebyside_2, select_multiplesidebyside_3,
select_multiplesidebyside_4, select_multiplesidebyside_5, select_multiplesidebyside_6,
select_multiplesidebyside_7,
--div--;renderType=selectTree,
select_tree_1, select_tree_2, select_tree_3, select_tree_4, select_tree_5, select_tree_6,
--div--;in flex,
Expand Down
24 changes: 16 additions & 8 deletions Configuration/TCA/tx_styleguide_elements_special.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@

'special_custom_1' => [
'exclude' => 1,
'label' => 'special_custom_1, identical to be_groups custom_options',
'label' => 'special_custom_1, identical to be_groups custom_options description',
'description' => 'field description',
'config' => [
// @todo: register a "custom" option so something is shown here
'type' => 'select',
Expand All @@ -105,7 +106,8 @@
],
'special_exclude_1' => [
'exclude' => 1,
'label' => 'special_exclude_1, identical to be_groups non_exclude_fields',
'label' => 'special_exclude_1, identical to be_groups non_exclude_fields description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand All @@ -116,7 +118,8 @@
],
'special_explicitvalues_1' => [
'exclude' => 1,
'label' => 'special_explicitvalues_1, identical to be_groups explicit_allowdeny',
'label' => 'special_explicitvalues_1, identical to be_groups explicit_allowdeny description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand All @@ -125,7 +128,8 @@
],
'special_languages_1' => [
'exclude' => 1,
'label' => 'special_languages_1, identical to be_groups allowed_languages',
'label' => 'special_languages_1, identical to be_groups allowed_languages description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand All @@ -134,7 +138,8 @@
],
'special_modlistgroup_1' => [
'exclude' => 1,
'label' => 'special_modlistgroup_1, identical to be_groups groupMods',
'label' => 'special_modlistgroup_1, identical to be_groups groupMods description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand All @@ -145,7 +150,8 @@
],
'special_pagetypes_1' => [
'exclude' => 1,
'label' => 'special_pagetypes_1, identical to be_groups pagetypes_select',
'label' => 'special_pagetypes_1, identical to be_groups pagetypes_select description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand All @@ -156,7 +162,8 @@
],
'special_tables_1' => [
'exclude' => 1,
'label' => 'special_tables_1, identical to be_groups tables_modify & tables_select',
'label' => 'special_tables_1, identical to be_groups tables_modify & tables_select description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand Down Expand Up @@ -188,7 +195,8 @@
],
'special_usermods_1' => [
'exclude' => 1,
'label' => 'special_usermods_1, identical to be_users userMods',
'label' => 'special_usermods_1, identical to be_users userMods description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand Down
Loading

0 comments on commit dd32611

Please sign in to comment.