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