[TASK] Cleanup TCA select field configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Configuration / TCA / pages_language_overlay.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages_language_overlay',
7 'versioningWS' => TRUE,
8 'versioning_followPages' => TRUE,
9 'origUid' => 't3_origuid',
10 'crdate' => 'crdate',
11 'cruser_id' => 'cruser_id',
12 'delete' => 'deleted',
13 'enablecolumns' => array(
14 'disabled' => 'hidden',
15 'starttime' => 'starttime',
16 'endtime' => 'endtime'
17 ),
18 'transOrigPointerField' => 'pid',
19 'transOrigPointerTable' => 'pages',
20 'transOrigDiffSourceField' => 'l18n_diffsource',
21 'shadowColumnsForNewPlaceholders' => 'title',
22 'languageField' => 'sys_language_uid',
23 'type' => 'doktype',
24 'typeicon_classes' => array(
25 'default' => 'mimetypes-x-content-page-language-overlay'
26 ),
27 'searchFields' => 'title,subtitle,nav_title,keywords,description,abstract,author,author_email,url'
28 ),
29 'interface' => array(
30 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
31 ),
32 'columns' => array(
33 'doktype' => $GLOBALS['TCA']['pages']['columns']['doktype'],
34 'hidden' => array(
35 'exclude' => 1,
36 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden',
37 'config' => array(
38 'type' => 'check',
39 'default' => '0',
40 'items' => array(
41 '1' => array(
42 '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_checkbox_1_formlabel'
43 )
44 )
45 )
46 ),
47 'starttime' => array(
48 'exclude' => 1,
49 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
50 'config' => array(
51 'type' => 'input',
52 'size' => '13',
53 'eval' => 'datetime',
54 'default' => '0'
55 )
56 ),
57 'endtime' => array(
58 'exclude' => 1,
59 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
60 'config' => array(
61 'type' => 'input',
62 'size' => '13',
63 'eval' => 'datetime',
64 'default' => '0',
65 'range' => array(
66 'upper' => mktime(0, 0, 0, 12, 31, 2020)
67 )
68 )
69 ),
70 'title' => array(
71 'l10n_mode' => 'prefixLangTitle',
72 'label' => $GLOBALS['TCA']['pages']['columns']['title']['label'],
73 'l10n_cat' => 'text',
74 'config' => array(
75 'type' => 'input',
76 'size' => '50',
77 'max' => '255',
78 'eval' => 'trim,required'
79 )
80 ),
81 'subtitle' => array(
82 'exclude' => 1,
83 'l10n_cat' => 'text',
84 'label' => $GLOBALS['TCA']['pages']['columns']['subtitle']['label'],
85 'config' => array(
86 'type' => 'input',
87 'size' => '50',
88 'max' => '255',
89 'eval' => 'trim'
90 )
91 ),
92 'nav_title' => array(
93 'exclude' => 1,
94 'l10n_cat' => 'text',
95 'label' => $GLOBALS['TCA']['pages']['columns']['nav_title']['label'],
96 'config' => array(
97 'type' => 'input',
98 'size' => '50',
99 'max' => '255',
100 'eval' => 'trim'
101 )
102 ),
103 'keywords' => array(
104 'exclude' => 1,
105 'label' => $GLOBALS['TCA']['pages']['columns']['keywords']['label'],
106 'config' => array(
107 'type' => 'text',
108 'cols' => '40',
109 'rows' => '3'
110 )
111 ),
112 'description' => array(
113 'exclude' => 1,
114 'label' => $GLOBALS['TCA']['pages']['columns']['description']['label'],
115 'config' => array(
116 'type' => 'text',
117 'cols' => '40',
118 'rows' => '3'
119 )
120 ),
121 'abstract' => array(
122 'exclude' => 1,
123 'label' => $GLOBALS['TCA']['pages']['columns']['abstract']['label'],
124 'config' => array(
125 'type' => 'text',
126 'cols' => '40',
127 'rows' => '3'
128 )
129 ),
130 'author' => array(
131 'exclude' => 1,
132 'label' => $GLOBALS['TCA']['pages']['columns']['author']['label'],
133 'config' => array(
134 'type' => 'input',
135 'size' => '23',
136 'eval' => 'trim',
137 'max' => '80'
138 )
139 ),
140 'author_email' => array(
141 'exclude' => 1,
142 'label' => $GLOBALS['TCA']['pages']['columns']['author_email']['label'],
143 'config' => array(
144 'type' => 'input',
145 'size' => '23',
146 'eval' => 'trim',
147 'max' => '80',
148 'softref' => 'email[subst]'
149 )
150 ),
151 'media' => array(
152 'exclude' => 1,
153 'label' => $GLOBALS['TCA']['pages']['columns']['media']['label'],
154 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('media')
155 ),
156 'url' => array(
157 'exclude' => 1,
158 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url',
159 'config' => array(
160 'type' => 'input',
161 'size' => '23',
162 'max' => '255',
163 'eval' => 'trim',
164 'softref' => 'url'
165 )
166 ),
167 'urltype' => array(
168 'exclude' => 1,
169 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type',
170 'config' => array(
171 'type' => 'select',
172 'renderType' => 'selectSingle',
173 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'],
174 'default' => '1'
175 )
176 ),
177 'shortcut' => array(
178 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.shortcut_page',
179 'config' => array(
180 'type' => 'group',
181 'internal_type' => 'db',
182 'allowed' => 'pages',
183 'size' => '1',
184 'maxitems' => '1',
185 'minitems' => '0',
186 'show_thumbs' => '1',
187 'wizards' => array(
188 'suggest' => array(
189 'type' => 'suggest'
190 )
191 )
192 )
193 ),
194 'shortcut_mode' => array(
195 'exclude' => 1,
196 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode',
197 'config' => array(
198 'type' => 'select',
199 'renderType' => 'selectSingle',
200 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
201 'default' => '0'
202 )
203 ),
204 'sys_language_uid' => array(
205 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
206 'config' => array(
207 'type' => 'select',
208 'renderType' => 'selectSingle',
209 'foreign_table' => 'sys_language',
210 'foreign_table_where' => 'ORDER BY sys_language.title',
211 'items' => array(), // no default language here, as the pages table is always the default language
212 'default' => 0
213 )
214 ),
215 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
216 'l18n_diffsource' => array(
217 'config' => array(
218 'type' => 'passthrough',
219 'default' => ''
220 )
221 ),
222 't3ver_label' => array(
223 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
224 'config' => array(
225 'type' => 'input',
226 'size' => '30',
227 'max' => '255'
228 )
229 )
230 ),
231 'types' => array(
232 // normal
233 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => array(
234 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
235 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
236 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
237 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
238 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
239 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
240 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
241 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.metatags;metatags,
242 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
243 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
244 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
245 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
246 '
247 ),
248 // external URL
249 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(
250 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.external;external,
251 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
252 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
253 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
254 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
255 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
256 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
257 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
258 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
259 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
260 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
261 '
262 ),
263 // shortcut
264 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(
265 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
266 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
267 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
268 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
269 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
270 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
271 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
272 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
273 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
274 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
275 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
276 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
277 '
278 ),
279 // mount page
280 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(
281 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
282 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;title,
283 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
284 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
285 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
286 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.metadata,
287 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.abstract;abstract,
288 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.editorial;editorial,
289 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
290 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
291 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
292 '
293 ),
294 // spacer
295 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
296 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
297 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
298 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
299 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
300 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.access;access,
301 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
302 '
303 ),
304 // sysfolder
305 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
306 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
307 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
308 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
309 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
310 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.resources,
311 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.media;media,
312 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
313 '
314 ),
315 // trash
316 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
317 'showitem' => '--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.standard;standard,
318 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.title;titleonly,
319 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.access,
320 --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
321 --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.tabs.extended,
322 '
323 )
324 ),
325 'palettes' => array(
326 '5' => array(
327 'showitem' => 'author,author_email',
328 ),
329 'standard' => array(
330 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid',
331 ),
332 'shortcut' => array(
333 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid, shortcut_mode;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_mode_formlabel',
334 ),
335 'shortcutpage' => array(
336 'showitem' => 'shortcut;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.shortcut_formlabel',
337 ),
338 'external' => array(
339 'showitem' => 'doktype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid, urltype;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.urltype_formlabel, url;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.url_formlabel',
340 ),
341 'title' => array(
342 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel, --linebreak--, nav_title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_title_formlabel, --linebreak--, subtitle;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.subtitle_formlabel',
343 ),
344 'titleonly' => array(
345 'showitem' => 'title;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.title_formlabel',
346 ),
347 'hiddenonly' => array(
348 'showitem' => 'hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.hidden_formlabel',
349 ),
350 'access' => array(
351 'showitem' => 'starttime;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.starttime_formlabel, endtime;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.endtime_formlabel',
352 ),
353 'abstract' => array(
354 'showitem' => 'abstract;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.abstract_formlabel',
355 ),
356 'metatags' => array(
357 'showitem' => 'keywords;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.description_formlabel',
358 ),
359 'editorial' => array(
360 'showitem' => 'author;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_formlabel, author_email;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_email_formlabel',
361 ),
362 'language' => array(
363 'showitem' => 'l18n_cfg;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.l18n_cfg_formlabel',
364 ),
365 'media' => array(
366 'showitem' => 'media;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.media_formlabel',
367 ),
368 ),
369 );