Skip to content

Commit 4782c2b

Browse files
committed
[TASK] TCA: Input colorpicker with valuePicker as inline child
Related: #83000
1 parent 6cfd6a9 commit 4782c2b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Configuration/TCA/tx_styleguide_inline_1n_child.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,22 @@
106106
'size' => '30',
107107
],
108108
],
109+
'input_2' => [
110+
'exclude' => 1,
111+
'label' => 'input_2 renderType=colorpicker, valuePicker',
112+
'config' => [
113+
'type' => 'input',
114+
'renderType' => 'colorpicker',
115+
'size' => 10,
116+
'valuePicker' => [
117+
'items' => [
118+
[ 'blue', '#0000FF', ],
119+
[ 'red', '#FF0000', ],
120+
[ 'typo3 orange', '#FF8700', ],
121+
],
122+
],
123+
],
124+
],
109125
'group_db_1' => [
110126
'exclude' => 1,
111127
'label' => 'group_db_1 allowed=tx_styleguide_staticdata',
@@ -133,7 +149,7 @@
133149
'types' => [
134150
'0' => [
135151
'showitem' => '
136-
--div--;General, input_1, group_db_1, select_tree_1,
152+
--div--;General, input_1, input_2, group_db_1, select_tree_1,
137153
--div--;meta, disable, sys_language_uid, l10n_parent, l10n_source,
138154
',
139155
],

ext_tables.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ CREATE TABLE tx_styleguide_inline_1n_child (
920920
parenttable text,
921921

922922
input_1 text,
923+
input_2 text,
923924
group_db_1 text,
924925
select_tree_1 text,
925926

0 commit comments

Comments
 (0)