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