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