[!!!][TASK] Improve flex and TCA handling in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / tx_blogexample_domain_model_person.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person',
5 'label' => 'lastname',
6 'label_alt' => 'firstname',
7 'label_alt_force' => true,
8 'tstamp' => 'tstamp',
9 'crdate' => 'crdate',
10 'versioningWS' => true,
11 'origUid' => 't3_origuid',
12 'prependAtCopy' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.prependAtCopy',
13 'delete' => 'deleted',
14 'enablecolumns' => [
15 'disabled' => 'hidden'
16 ],
17 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_person.gif'
18 ],
19 'interface' => [
20 'showRecordFieldList' => 'firstname, lastname, email, avatar'
21 ],
22 'columns' => [
23 'hidden' => [
24 'exclude' => true,
25 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
26 'config' => [
27 'type' => 'check'
28 ]
29 ],
30 'firstname' => [
31 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.firstname',
32 'config' => [
33 'type' => 'input',
34 'size' => 20,
35 'eval' => 'trim,required',
36 'max' => 256
37 ]
38 ],
39 'lastname' => [
40 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.lastname',
41 'config' => [
42 'type' => 'input',
43 'size' => 20,
44 'eval' => 'trim,required',
45 'max' => 256
46 ]
47 ],
48 'email' => [
49 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.email',
50 'config' => [
51 'type' => 'input',
52 'size' => 20,
53 'eval' => 'trim, required',
54 'max' => 256
55 ]
56 ],
57 'tags' => [
58 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags',
59 'config' => [
60 'type' => 'inline',
61 'foreign_table' => 'tx_blogexample_domain_model_tag',
62 'MM' => 'tx_blogexample_domain_model_tag_mm',
63 'foreign_table_field' => 'tablenames',
64 'foreign_match_fields' => [
65 'fieldname' => 'tags'
66 ],
67 'appearance' => [
68 'useCombination' => 1,
69 'useSortable' => 1,
70 'collapseAll' => 1,
71 'expandSingle' => 1,
72 ]
73 ]
74 ],
75 'tags_special' => [
76 'exclude' => true,
77 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags_special',
78 'config' => [
79 'type' => 'inline',
80 'foreign_table' => 'tx_blogexample_domain_model_tag',
81 'MM' => 'tx_blogexample_domain_model_tag_mm',
82 'foreign_table_field' => 'tablenames',
83 'foreign_match_fields' => [
84 'fieldname' => 'tags_special'
85 ],
86 'appearance' => [
87 'useCombination' => 1,
88 'useSortable' => 1,
89 'collapseAll' => 1,
90 'expandSingle' => 1,
91 ]
92 ]
93 ],
94 ],
95 'types' => [
96 '1' => ['showitem' => 'firstname, lastname, email, avatar, tags, tags_special']
97 ],
98 'palettes' => [
99 '1' => ['showitem' => '']
100 ]
101 ];