[!!!][TASK] Remove t3ver_label database field
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / tx_blogexample_domain_model_blog.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'versioningWS' => true,
9 'origUid' => 't3_origuid',
10 'languageField' => 'sys_language_uid',
11 'transOrigPointerField' => 'l18n_parent',
12 'transOrigDiffSourceField' => 'l18n_diffsource',
13 'delete' => 'deleted',
14 'enablecolumns' => [
15 'disabled' => 'hidden',
16 'fe_group' => 'fe_group',
17 ],
18 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif'
19 ],
20 'interface' => [
21 'showRecordFieldList' => 'title, posts, administrator'
22 ],
23 'columns' => [
24 'sys_language_uid' => [
25 'exclude' => true,
26 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
27 'config' => [
28 'type' => 'select',
29 'renderType' => 'selectSingle',
30 'special' => 'languages',
31 'items' => [
32 [
33 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
34 -1,
35 'flags-multiple'
36 ],
37 ],
38 'default' => 0
39 ]
40 ],
41 'l18n_parent' => [
42 'displayCond' => 'FIELD:sys_language_uid:>:0',
43 'exclude' => true,
44 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
45 'config' => [
46 'type' => 'select',
47 'renderType' => 'selectSingle',
48 'items' => [
49 ['', 0],
50 ],
51 'foreign_table' => 'tx_blogexample_domain_model_blog',
52 'foreign_table_where' => 'AND tx_blogexample_domain_model_blog.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_blog.sys_language_uid IN (-1,0)',
53 ]
54 ],
55 'l18n_diffsource' => [
56 'config' => [
57 'type' => 'passthrough',
58 'default' => ''
59 ]
60 ],
61 'hidden' => [
62 'exclude' => true,
63 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
64 'config' => [
65 'type' => 'check'
66 ]
67 ],
68 'fe_group' => [
69 'exclude' => true,
70 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
71 'config' => [
72 'type' => 'select',
73 'renderType' => 'selectMultipleSideBySide',
74 'size' => 5,
75 'maxitems' => 20,
76 'items' => [
77 [
78 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
79 -1,
80 ],
81 [
82 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
83 -2,
84 ],
85 [
86 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
87 '--div--',
88 ],
89 ],
90 'exclusiveKeys' => '-1,-2',
91 'foreign_table' => 'fe_groups',
92 'foreign_table_where' => 'ORDER BY fe_groups.title',
93 ],
94 ],
95 'title' => [
96 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
97 'config' => [
98 'type' => 'input',
99 'size' => 20,
100 'eval' => 'trim,required',
101 'max' => 256
102 ]
103 ],
104 'subtitle' => [
105 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.subtitle',
106 'config' => [
107 'type' => 'input',
108 'size' => 20,
109 'eval' => 'trim',
110 'max' => 256
111 ]
112 ],
113 'description' => [
114 'exclude' => true,
115 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
116 'config' => [
117 'type' => 'text',
118 'eval' => 'required',
119 'rows' => 30,
120 'cols' => 80,
121 ]
122 ],
123 'logo' => [
124 'exclude' => true,
125 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
126 'config' => [
127 'type' => 'group',
128 'internal_type' => 'file',
129 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
130 'max_size' => 3000,
131 'uploadfolder' => 'uploads/pics',
132 'size' => 1,
133 'maxitems' => 1,
134 'minitems' => 0
135 ]
136 ],
137 'posts' => [
138 'exclude' => true,
139 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
140 'config' => [
141 'type' => 'inline',
142 'foreign_table' => 'tx_blogexample_domain_model_post',
143 'foreign_field' => 'blog',
144 'foreign_sortby' => 'sorting',
145 'appearance' => [
146 'collapseAll' => 1,
147 'expandSingle' => 1,
148 ],
149 ]
150 ],
151 'administrator' => [
152 'exclude' => true,
153 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
154 'config' => [
155 'type' => 'select',
156 'renderType' => 'selectSingle',
157 'foreign_table' => 'fe_users',
158 'foreign_table_where' => "AND fe_users.tx_extbase_type='ExtbaseTeam\\\\BlogExample\\\\Domain\\\\Model\\\\Administrator'",
159 'items' => [
160 ['--none--', 0],
161 ],
162 'fieldControl' => [
163 'editPopup' => [
164 'disabled' => false,
165 ],
166 'addRecord' => [
167 'disabled' => false,
168 'options' => [
169 'setValue' => 'prepend',
170 ],
171 ],
172 ],
173 ],
174 ],
175 ],
176 'types' => [
177 '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
178 ],
179 'palettes' => [
180 '1' => ['showitem' => '']
181 ]
182 ];