b162e6a91e9f1b0a814ba5a54cfa5bda7e3b5440
[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 't3ver_label' => [
62 'displayCond' => 'FIELD:t3ver_label:REQ:true',
63 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
64 'config' => [
65 'type' => 'none',
66 'cols' => 27
67 ]
68 ],
69 'hidden' => [
70 'exclude' => true,
71 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
72 'config' => [
73 'type' => 'check'
74 ]
75 ],
76 'fe_group' => [
77 'exclude' => true,
78 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
79 'config' => [
80 'type' => 'select',
81 'renderType' => 'selectMultipleSideBySide',
82 'size' => 5,
83 'maxitems' => 20,
84 'items' => [
85 [
86 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
87 -1,
88 ],
89 [
90 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
91 -2,
92 ],
93 [
94 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
95 '--div--',
96 ],
97 ],
98 'exclusiveKeys' => '-1,-2',
99 'foreign_table' => 'fe_groups',
100 'foreign_table_where' => 'ORDER BY fe_groups.title',
101 ],
102 ],
103 'title' => [
104 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
105 'config' => [
106 'type' => 'input',
107 'size' => 20,
108 'eval' => 'trim,required',
109 'max' => 256
110 ]
111 ],
112 'subtitle' => [
113 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.subtitle',
114 'config' => [
115 'type' => 'input',
116 'size' => 20,
117 'eval' => 'trim',
118 'max' => 256
119 ]
120 ],
121 'description' => [
122 'exclude' => true,
123 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
124 'config' => [
125 'type' => 'text',
126 'eval' => 'required',
127 'rows' => 30,
128 'cols' => 80,
129 ]
130 ],
131 'logo' => [
132 'exclude' => true,
133 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
134 'config' => [
135 'type' => 'group',
136 'internal_type' => 'file',
137 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
138 'max_size' => 3000,
139 'uploadfolder' => 'uploads/pics',
140 'size' => 1,
141 'maxitems' => 1,
142 'minitems' => 0
143 ]
144 ],
145 'posts' => [
146 'exclude' => true,
147 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
148 'config' => [
149 'type' => 'inline',
150 'foreign_table' => 'tx_blogexample_domain_model_post',
151 'foreign_field' => 'blog',
152 'foreign_sortby' => 'sorting',
153 'appearance' => [
154 'collapseAll' => 1,
155 'expandSingle' => 1,
156 ],
157 ]
158 ],
159 'administrator' => [
160 'exclude' => true,
161 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
162 'config' => [
163 'type' => 'select',
164 'renderType' => 'selectSingle',
165 'foreign_table' => 'fe_users',
166 'foreign_table_where' => "AND fe_users.tx_extbase_type='ExtbaseTeam\\\\BlogExample\\\\Domain\\\\Model\\\\Administrator'",
167 'items' => [
168 ['--none--', 0],
169 ],
170 'fieldControl' => [
171 'editPopup' => [
172 'disabled' => false,
173 ],
174 'addRecord' => [
175 'disabled' => false,
176 'options' => [
177 'setValue' => 'prepend',
178 ],
179 ],
180 ],
181 ],
182 ],
183 ],
184 'types' => [
185 '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
186 ],
187 'palettes' => [
188 '1' => ['showitem' => '']
189 ]
190 ];