[BUGFIX] Media field is empty on page localization
[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(
159 'media',
160 array(
161 'appearance' => array(
162 'levelLinksPosition' => 'top',
163 'showPossibleLocalizationRecords' => TRUE,
164 'showAllLocalizationLink' => TRUE,
165 ),
166 )
167 )
168 ),
169 'url' => array(
170 'exclude' => 1,
171 'label' => 'LLL:EXT:cms/locallang_tca.xlf:pages.url',
172 'config' => array(
173 'type' => 'input',
174 'size' => '23',
175 'max' => '255',
176 'eval' => 'trim',
177 'softref' => 'url'
178 )
179 ),
180 'urltype' => array(
181 'exclude' => 1,
182 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.type',
183 'config' => array(
184 'type' => 'select',
185 'items' => $GLOBALS['TCA']['pages']['columns']['urltype']['config']['items'],
186 'default' => '1'
187 )
188 ),
189 'shortcut' => array(
190 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.shortcut_page',
191 'config' => array(
192 'type' => 'group',
193 'internal_type' => 'db',
194 'allowed' => 'pages',
195 'size' => '1',
196 'maxitems' => '1',
197 'minitems' => '0',
198 'show_thumbs' => '1',
199 'wizards' => array(
200 'suggest' => array(
201 'type' => 'suggest'
202 )
203 )
204 )
205 ),
206 'shortcut_mode' => array(
207 'exclude' => 1,
208 'label' => 'LLL:EXT:cms/locallang_tca.xlf:pages.shortcut_mode',
209 'config' => array(
210 'type' => 'select',
211 'items' => $GLOBALS['TCA']['pages']['columns']['shortcut_mode']['config']['items'],
212 'default' => '0'
213 )
214 ),
215 'sys_language_uid' => array(
216 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
217 'config' => array(
218 'type' => 'select',
219 'foreign_table' => 'sys_language',
220 'foreign_table_where' => 'ORDER BY sys_language.title',
221 'items' => array(
222 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
223 )
224 )
225 ),
226 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
227 'l18n_diffsource' => array('config' => array('type' => 'passthrough')),
228 't3ver_label' => array(
229 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
230 'config' => array(
231 'type' => 'input',
232 'size' => '30',
233 'max' => '255'
234 )
235 )
236 ),
237 'types' => array(
238 // normal
239 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => array(
240 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
241 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
242 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
243 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
244 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
245 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
246 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,
247 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.metatags;metatags,
248 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,
249 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
250 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
251 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
252 '
253 ),
254 // external URL
255 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(
256 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,
257 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
258 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
259 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
260 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
261 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
262 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,
263 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,
264 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
265 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
266 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
267 '
268 ),
269 // shortcut
270 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(
271 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
272 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
273 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
274 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
275 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
276 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
277 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
278 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,
279 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,
280 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
281 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
282 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
283 '
284 ),
285 // mount page
286 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(
287 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
288 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
289 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
290 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
291 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
292 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
293 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.abstract;abstract,
294 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.editorial;editorial,
295 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
296 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
297 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
298 '
299 ),
300 // spacer
301 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
302 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
303 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
304 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
305 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
306 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.access;access,
307 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
308 '
309 ),
310 // sysfolder
311 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
312 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
313 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
314 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
315 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
316 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.resources,
317 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.media;media,
318 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
319 '
320 ),
321 // trash
322 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
323 'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
324 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
325 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
326 --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.visibility;hiddenonly,
327 --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
328 '
329 )
330 ),
331 'palettes' => array(
332 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => TRUE),
333 'standard' => array(
334 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xlf:pages.doktype_formlabel, sys_language_uid',
335 'canNotCollapse' => 1
336 ),
337 'shortcut' => array(
338 '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',
339 'canNotCollapse' => 1
340 ),
341 'shortcutpage' => array(
342 'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xlf:pages.shortcut_formlabel',
343 'canNotCollapse' => 1
344 ),
345 'external' => array(
346 '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',
347 'canNotCollapse' => 1
348 ),
349 'title' => array(
350 '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',
351 'canNotCollapse' => 1
352 ),
353 'titleonly' => array(
354 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xlf:pages.title_formlabel',
355 'canNotCollapse' => 1
356 ),
357 'hiddenonly' => array(
358 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xlf:pages.hidden_formlabel',
359 'canNotCollapse' => 1
360 ),
361 'access' => array(
362 'showitem' => 'starttime;LLL:EXT:cms/locallang_tca.xlf:pages.starttime_formlabel, endtime;LLL:EXT:cms/locallang_tca.xlf:pages.endtime_formlabel',
363 'canNotCollapse' => 1
364 ),
365 'abstract' => array(
366 'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xlf:pages.abstract_formlabel',
367 'canNotCollapse' => 1
368 ),
369 'metatags' => array(
370 'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xlf:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xlf:pages.description_formlabel',
371 'canNotCollapse' => 1
372 ),
373 'editorial' => array(
374 'showitem' => 'author;LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel, author_email;LLL:EXT:cms/locallang_tca.xlf:pages.author_email_formlabel',
375 'canNotCollapse' => 1
376 ),
377 'language' => array(
378 'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xlf:pages.l18n_cfg_formlabel',
379 'canNotCollapse' => 1
380 ),
381 'media' => array(
382 'showitem' => 'media;LLL:EXT:cms/locallang_tca.xlf:pages.media_formlabel',
383 'canNotCollapse' => 1
384 )
385 )
386 );