Skip to content

Commit

Permalink
[TASK] Proper TCA type=email example
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 committed Jun 26, 2023
1 parent 327a2ac commit e6771d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 11 additions & 8 deletions Configuration/TCA/tx_styleguide_elements_basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,6 @@
],
],
],
'input_39' => [
'label' => 'input_39',
'description' => 'type=email',
'config' => [
'type' => 'email',
],
],
'input_40' => [
'label' => 'input_40',
'description' => 'readOnly',
Expand Down Expand Up @@ -711,6 +704,14 @@
],
],

'email_1' => [
'label' => 'email_1',
'description' => 'email',
'config' => [
'type' => 'email',
],
],

'text_1' => [
'l10n_mode' => 'prefixLangTitle description',
'description' => 'field description',
Expand Down Expand Up @@ -1669,7 +1670,7 @@
'0' => [
'showitem' => '
--div--;input,
input_1, input_40, input_2, input_3, input_41, input_42, input_43, input_44, input_4, input_5, input_39, input_10,
input_1, input_40, input_2, input_3, input_41, input_42, input_43, input_44, input_4, input_5, input_10,
input_11, input_12, input_13, input_15, input_16, input_19, input_20,
input_21, input_22, input_23, input_24, input_26, input_27, input_14, input_28,
input_33, input_35, input_36,
Expand All @@ -1685,6 +1686,8 @@
color_1,color_2,color_3,
--div--;number,
number_1, number_2, number_3, number_4, number_5, number_6, number_7,
--div--;email,
email_1,
--div--;text,
text_1, text_2, text_3, text_4, text_5, text_6, text_7, text_9, text_10,
text_11, text_12, text_13, text_18, text_14, text_15, text_16, text_17, text_19,
Expand Down
3 changes: 2 additions & 1 deletion ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ CREATE TABLE tx_styleguide_elements_basic (
input_33 text,
input_35 text,
input_36 text,
input_39 text,
input_40 text,
input_41 text,
input_42 text,
Expand Down Expand Up @@ -127,6 +126,8 @@ CREATE TABLE tx_styleguide_elements_basic (
number_6 int(11) DEFAULT '0' NOT NULL,
number_7 int(11) DEFAULT '0' NOT NULL,

email_1 text,

inputdatetime_1 text,
inputdatetime_2 date,
inputdatetime_3 text,
Expand Down

0 comments on commit e6771d3

Please sign in to comment.