More work on import/export + removal of "lower" range limit for endtimes on core...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_tt_content.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Dynamic configuation of the tt_content table
29 * This gets it's own file because it's so huge and central to typical TYPO3 use.
30 *
31 * $Id$
32 *
33 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
34 */
35
36
37
38 $TCA['tt_content'] = Array (
39 'ctrl' => $TCA['tt_content']['ctrl'],
40 'interface' => Array (
41 'always_description' => 0,
42 'showRecordFieldList' => 'CType,header,header_link,bodytext,image,imagewidth,imageorient,media,records,colPos,starttime,endtime,fe_group'
43 ),
44 'columns' => Array (
45 'CType' => Array (
46 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
47 'config' => Array (
48 'type' => 'select',
49 'items' => Array (
50 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.0', 'header'),
51 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.1', 'text'),
52 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.2', 'textpic'),
53 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.3', 'image'),
54 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.4', 'bullets'),
55 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.5', 'table'),
56 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.6', 'uploads'),
57 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.7', 'multimedia'),
58 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.8', 'mailform'),
59 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.9', 'search'),
60 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.10', 'login'),
61 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.11', 'splash'),
62 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.12', 'menu'),
63 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.13', 'shortcut'),
64 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.14', 'list'),
65 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.15', 'script'),
66 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.16', 'div'),
67 Array('LLL:EXT:cms/locallang_ttc.php:CType.I.17', 'html')
68 ),
69 'default' => 'text',
70 'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],
71 'authMode_enforce' => 'strict',
72 )
73 ),
74 'hidden' => Array (
75 'exclude' => 1,
76 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
77 'config' => Array (
78 'type' => 'check'
79 )
80 ),
81 'starttime' => Array (
82 'exclude' => 1,
83 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
84 'config' => Array (
85 'type' => 'input',
86 'size' => '8',
87 'max' => '20',
88 'eval' => 'date',
89 'checkbox' => '0',
90 'default' => '0'
91 )
92 ),
93 'endtime' => Array (
94 'exclude' => 1,
95 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
96 'config' => Array (
97 'type' => 'input',
98 'size' => '8',
99 'max' => '20',
100 'eval' => 'date',
101 'checkbox' => '0',
102 'default' => '0',
103 'range' => Array (
104 'upper' => mktime(0,0,0,12,31,2020),
105 )
106 )
107 ),
108 'fe_group' => Array (
109 'exclude' => 1,
110 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
111 'config' => Array (
112 'type' => 'select',
113 'items' => Array (
114 Array('', 0),
115 Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),
116 Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
117 Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
118 ),
119 'foreign_table' => 'fe_groups'
120 )
121 ),
122 'sys_language_uid' => Array (
123 'exclude' => 1,
124 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
125 'config' => Array (
126 'type' => 'select',
127 'foreign_table' => 'sys_language',
128 'foreign_table_where' => 'ORDER BY sys_language.title',
129 'items' => Array(
130 Array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages',-1),
131 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
132 )
133 )
134 ),
135 'l18n_parent' => Array (
136 'displayCond' => 'FIELD:sys_language_uid:>:0',
137 'exclude' => 1,
138 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',
139 'config' => Array (
140 'type' => 'select',
141 'items' => Array (
142 Array('', 0),
143 ),
144 'foreign_table' => 'tt_content',
145 'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid IN (-1,0)',
146 )
147 ),
148 'layout' => Array (
149 'exclude' => 1,
150 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.layout',
151 'config' => Array (
152 'type' => 'select',
153 'items' => Array (
154 Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
155 Array('LLL:EXT:cms/locallang_ttc.php:layout.I.1', '1'),
156 Array('LLL:EXT:cms/locallang_ttc.php:layout.I.2', '2'),
157 Array('LLL:EXT:cms/locallang_ttc.php:layout.I.3', '3')
158 ),
159 'default' => '0'
160 )
161 ),
162 'colPos' => Array (
163 'exclude' => 1,
164 'label' => 'LLL:EXT:cms/locallang_ttc.php:colPos',
165 'config' => Array (
166 'type' => 'select',
167 'items' => Array (
168 Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.0', '1'),
169 Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
170 Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.2', '2'),
171 Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.3', '3')
172 ),
173 'default' => '0'
174 )
175 ),
176 'date' => Array (
177 'exclude' => 1,
178 'label' => 'LLL:EXT:cms/locallang_ttc.php:date',
179 'config' => Array (
180 'type' => 'input',
181 'size' => '8',
182 'max' => '20',
183 'eval' => 'date',
184 'checkbox' => '0',
185 'default' => '0'
186 )
187 ),
188 'header' => Array (
189 'l10n_mode' => 'prefixLangTitle',
190 'label' => 'LLL:EXT:cms/locallang_ttc.php:header',
191 'config' => Array (
192 'type' => 'input',
193 'max' => '256'
194 )
195 ),
196 'header_position' => Array (
197 'label' => 'LLL:EXT:cms/locallang_ttc.php:header_position',
198 'config' => Array (
199 'type' => 'select',
200 'items' => Array (
201 Array('', ''),
202 Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.1', 'center'),
203 Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.2', 'right'),
204 Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.3', 'left')
205 ),
206 'default' => ''
207 )
208 ),
209 'header_link' => Array (
210 'label' => 'LLL:EXT:cms/locallang_ttc.php:header_link',
211 'config' => Array (
212 'type' => 'input',
213 'size' => '15',
214 'max' => '256',
215 'checkbox' => '',
216 'eval' => 'trim',
217 'wizards' => Array(
218 '_PADDING' => 2,
219 'link' => Array(
220 'type' => 'popup',
221 'title' => 'Link',
222 'icon' => 'link_popup.gif',
223 'script' => 'browse_links.php?mode=wizard',
224 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
225 )
226 ),
227 'softref' => 'typolink'
228 )
229 ),
230 'header_layout' => Array (
231 'exclude' => 1,
232 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
233 'config' => Array (
234 'type' => 'select',
235 'items' => Array (
236 Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),
237 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.1', '1'),
238 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.2', '2'),
239 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.3', '3'),
240 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.4', '4'),
241 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.5', '5'),
242 Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.6', '100')
243 ),
244 'default' => '0'
245 )
246 ),
247 'subheader' => Array (
248 'exclude' => 1,
249 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.subheader',
250 'config' => Array (
251 'type' => 'input',
252 'size' => '30',
253 'max' => '256',
254 'softref' => 'email[subst]'
255 )
256 ),
257 'bodytext' => Array (
258 'l10n_mode' => 'prefixLangTitle',
259 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.text',
260 'config' => Array (
261 'type' => 'text',
262 'cols' => '48',
263 'rows' => '5',
264 'wizards' => Array(
265 '_PADDING' => 4,
266 'RTE' => Array(
267 'notNewRecords' => 1,
268 'RTEonly' => 1,
269 'type' => 'script',
270 'title' => 'LLL:EXT:cms/locallang_ttc.php:bodytext.W.RTE',
271 'icon' => 'wizard_rte2.gif',
272 'script' => 'wizard_rte.php',
273 ),
274 'table' => Array(
275 'notNewRecords' => 1,
276 'enableByTypeConfig' => 1,
277 'type' => 'script',
278 'title' => 'Table wizard',
279 'icon' => 'wizard_table.gif',
280 'script' => 'wizard_table.php',
281 'params' => array('xmlOutput' => 0)
282 ),
283 'forms' => Array(
284 'notNewRecords' => 1,
285 'enableByTypeConfig' => 1,
286 'type' => 'script',
287 # 'hideParent' => array('rows' => 4),
288 'title' => 'Forms wizard',
289 'icon' => 'wizard_forms.gif',
290 'script' => 'wizard_forms.php?special=formtype_mail',
291 'params' => array('xmlOutput' => 0)
292 )
293 ),
294 'softref' => 'typolink_tag,images,email[subst],url'
295 )
296 ),
297 'text_align' => Array (
298 'exclude' => 1,
299 'label' => 'LLL:EXT:cms/locallang_ttc.php:text_align',
300 'config' => Array (
301 'type' => 'select',
302 'items' => Array (
303 Array('', ''),
304 Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.1', 'center'),
305 Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.2', 'right'),
306 Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.3', 'left')
307 ),
308 'default' => ''
309 )
310 ),
311 'text_face' => Array (
312 'exclude' => 1,
313 'label' => 'LLL:EXT:cms/locallang_ttc.php:text_face',
314 'config' => Array (
315 'type' => 'select',
316 'items' => Array (
317 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),
318 Array('Times', '1'),
319 Array('Verdana', '2'),
320 Array('Arial', '3')
321 ),
322 'default' => '0'
323 )
324 ),
325 'text_size' => Array (
326 'exclude' => 1,
327 'label' => 'LLL:EXT:cms/locallang_ttc.php:text_size',
328 'config' => Array (
329 'type' => 'select',
330 'items' => Array (
331 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),
332 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.1', '1'),
333 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.2', '2'),
334 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.3', '3'),
335 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.4', '4'),
336 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.5', '5'),
337 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.6', '10'),
338 Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.7', '11')
339 ),
340 'default' => '0'
341 )
342 ),
343 'text_color' => Array (
344 'exclude' => 1,
345 'label' => 'LLL:EXT:cms/locallang_ttc.php:text_color',
346 'config' => Array (
347 'type' => 'select',
348 'items' => Array (
349 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),
350 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.1', '1'),
351 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.2', '2'),
352 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.3', '200'),
353 Array('-----','--div--'),
354 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.5', '240'),
355 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.6', '241'),
356 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.7', '242'),
357 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.8', '243'),
358 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.9', '244'),
359 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.10', '245'),
360 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.11', '246'),
361 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.12', '247'),
362 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.13', '248'),
363 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.14', '249'),
364 Array('LLL:EXT:cms/locallang_ttc.php:text_color.I.15', '250')
365 ),
366 'default' => '0'
367 )
368 ),
369 'text_properties' => Array (
370 'exclude' => 1,
371 'label' => 'LLL:EXT:cms/locallang_ttc.php:text_properties',
372 'config' => Array (
373 'type' => 'check',
374 'items' => Array (
375 Array('LLL:EXT:cms/locallang_ttc.php:text_properties.I.0', ''),
376 Array('LLL:EXT:cms/locallang_ttc.php:text_properties.I.1', ''),
377 Array('LLL:EXT:cms/locallang_ttc.php:text_properties.I.2', ''),
378 Array('LLL:EXT:cms/locallang_ttc.php:text_properties.I.3', '')
379 ),
380 'cols' => 4
381 )
382 ),
383 'image' => Array (
384 # 'l10n_mode' => 'mergeIfNotBlank',
385 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.images',
386 'config' => Array (
387 'type' => 'group',
388 'internal_type' => 'file',
389 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
390 'max_size' => '1000',
391 'uploadfolder' => 'uploads/pics',
392 'show_thumbs' => '1',
393 'size' => '3',
394 'maxitems' => '200',
395 'minitems' => '0',
396 'autoSizeMax' => 40,
397 )
398 ),
399 'imagewidth' => Array (
400 'exclude' => 1,
401 'label' => 'LLL:EXT:cms/locallang_ttc.php:imagewidth',
402 'config' => Array (
403 'type' => 'input',
404 'size' => '4',
405 'max' => '4',
406 'eval' => 'int',
407 'checkbox' => '0',
408 'range' => Array (
409 'upper' => '999',
410 'lower' => '25'
411 ),
412 'default' => 0
413 )
414 ),
415 'imageheight' => Array (
416 'exclude' => 1,
417 'label' => 'LLL:EXT:cms/locallang_ttc.php:imageheight',
418 'config' => Array (
419 'type' => 'input',
420 'size' => '4',
421 'max' => '4',
422 'eval' => 'int',
423 'checkbox' => '0',
424 'range' => Array (
425 'upper' => '700',
426 'lower' => '25'
427 ),
428 'default' => 0
429 )
430 ),
431 'imageorient' => Array (
432 'label' => 'LLL:EXT:cms/locallang_ttc.php:imageorient',
433 'config' => Array (
434 'type' => 'select',
435 'items' => Array (
436 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.0', 0, 'selicons/above_center.gif'),
437 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.1', 1, 'selicons/above_right.gif'),
438 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.2', 2, 'selicons/above_left.gif'),
439 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.3', 8, 'selicons/below_center.gif'),
440 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.4', 9, 'selicons/below_right.gif'),
441 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.5', 10, 'selicons/below_left.gif'),
442 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.6', 17, 'selicons/intext_right.gif'),
443 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.7', 18, 'selicons/intext_left.gif'),
444 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.8', '--div--'),
445 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.9', 25, 'selicons/intext_right_nowrap.gif'),
446 Array('LLL:EXT:cms/locallang_ttc.php:imageorient.I.10', 26, 'selicons/intext_left_nowrap.gif')
447 ),
448 'selicon_cols' => 6,
449 'default' => '8',
450 'iconsInOptionTags' => 1,
451 )
452 ),
453 'imageborder' => Array (
454 'exclude' => 1,
455 'label' => 'LLL:EXT:cms/locallang_ttc.php:imageborder',
456 'config' => Array (
457 'type' => 'check'
458 )
459 ),
460 'image_noRows' => Array (
461 'exclude' => 1,
462 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_noRows',
463 'config' => Array (
464 'type' => 'check'
465 )
466 ),
467 'image_link' => Array (
468 'exclude' => 1,
469 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_link',
470 'config' => Array (
471 'type' => 'input',
472 'size' => '15',
473 'max' => '256',
474 'checkbox' => '',
475 'eval' => 'trim',
476 'wizards' => Array(
477 '_PADDING' => 2,
478 'link' => Array(
479 'type' => 'popup',
480 'title' => 'Link',
481 'icon' => 'link_popup.gif',
482 'script' => 'browse_links.php?mode=wizard',
483 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
484 )
485 ),
486 'softref' => 'typolink[linkList]'
487 )
488 ),
489 'image_zoom' => Array (
490 'exclude' => 1,
491 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_zoom',
492 'config' => Array (
493 'type' => 'check'
494 )
495 ),
496 'image_effects' => Array (
497 'exclude' => 1,
498 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_effects',
499 'config' => Array (
500 'type' => 'select',
501 'items' => Array (
502 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.0', 0),
503 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.1', 1),
504 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.2', 2),
505 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.3', 3),
506 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.4', 10),
507 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.5', 11),
508 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.6', 20),
509 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.7', 23),
510 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.8', 25),
511 Array('LLL:EXT:cms/locallang_ttc.php:image_effects.I.9', 26)
512 )
513 )
514 ),
515 'image_frames' => Array (
516 'exclude' => 1,
517 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_frames',
518 'config' => Array (
519 'type' => 'select',
520 'items' => Array (
521 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.0', 0),
522 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.1', 1),
523 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.2', 2),
524 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.3', 3),
525 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.4', 4),
526 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.5', 5),
527 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.6', 6),
528 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.7', 7),
529 Array('LLL:EXT:cms/locallang_ttc.php:image_frames.I.8', 8)
530 )
531 )
532 ),
533 'image_compression' => Array (
534 'exclude' => 1,
535 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_compression',
536 'config' => Array (
537 'type' => 'select',
538 'items' => Array (
539 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', 0),
540 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.1', 1),
541 Array('GIF/256', 10),
542 Array('GIF/128', 11),
543 Array('GIF/64', 12),
544 Array('GIF/32', 13),
545 Array('GIF/16', 14),
546 Array('GIF/8', 15),
547 Array('PNG', 39),
548 Array('PNG/256', 30),
549 Array('PNG/128', 31),
550 Array('PNG/64', 32),
551 Array('PNG/32', 33),
552 Array('PNG/16', 34),
553 Array('PNG/8', 35),
554 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.15', 21),
555 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.16', 22),
556 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.17', 24),
557 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.18', 26),
558 Array('LLL:EXT:cms/locallang_ttc.php:image_compression.I.19', 28)
559 )
560 )
561 ),
562 'imagecols' => Array (
563 'label' => 'LLL:EXT:cms/locallang_ttc.php:imagecols',
564 'config' => Array (
565 'type' => 'select',
566 'items' => Array (
567 Array('1', 0),
568 Array('2', 2),
569 Array('3', 3),
570 Array('4', 4),
571 Array('5', 5),
572 Array('6', 6),
573 Array('7', 7),
574 Array('8', 8)
575 ),
576 'default' => 0
577 )
578 ),
579 'imagecaption' => Array (
580 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.caption',
581 'config' => Array (
582 'type' => 'text',
583 'cols' => '30',
584 'rows' => '3',
585 'softref' => 'typolink_tag,images,email[subst],url'
586 )
587 ),
588 'imagecaption_position' => Array (
589 'exclude' => 1,
590 'label' => 'LLL:EXT:cms/locallang_ttc.php:imagecaption_position',
591 'config' => Array (
592 'type' => 'select',
593 'items' => Array (
594 Array('', ''),
595 Array('LLL:EXT:cms/locallang_ttc.php:imagecaption_position.I.1', 'center'),
596 Array('LLL:EXT:cms/locallang_ttc.php:imagecaption_position.I.2', 'right'),
597 Array('LLL:EXT:cms/locallang_ttc.php:imagecaption_position.I.3', 'left')
598 ),
599 'default' => ''
600 )
601 ),
602 'cols' => Array (
603 'label' => 'LLL:EXT:cms/locallang_ttc.php:cols',
604 'config' => Array (
605 'type' => 'select',
606 'items' => Array (
607 Array('LLL:EXT:cms/locallang_ttc.php:cols.I.0', '0'),
608 Array('1', '1'),
609 Array('2', '2'),
610 Array('3', '3'),
611 Array('4', '4'),
612 Array('5', '5'),
613 Array('6', '6'),
614 Array('7', '7'),
615 Array('8', '8'),
616 Array('9', '9')
617 ),
618 'default' => '0'
619 )
620 ),
621 'pages' => Array (
622 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.startingpoint',
623 'config' => Array (
624 'type' => 'group',
625 'internal_type' => 'db',
626 'allowed' => 'pages',
627 'size' => '3',
628 'maxitems' => '22',
629 'minitems' => '0',
630 'show_thumbs' => '1'
631 )
632 ),
633 'recursive' => Array (
634 'exclude' => 1,
635 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.recursive',
636 'config' => Array (
637 'type' => 'select',
638 'items' => Array (
639 Array('', '0'),
640 Array('LLL:EXT:cms/locallang_ttc.php:recursive.I.1', '1'),
641 Array('LLL:EXT:cms/locallang_ttc.php:recursive.I.2', '2'),
642 Array('LLL:EXT:cms/locallang_ttc.php:recursive.I.3', '3'),
643 Array('LLL:EXT:cms/locallang_ttc.php:recursive.I.4', '4'),
644 Array('LLL:EXT:cms/locallang_ttc.php:recursive.I.5', '250')
645 ),
646 'default' => '0'
647 )
648 ),
649 'menu_type' => Array (
650 'label' => 'LLL:EXT:cms/locallang_ttc.php:menu_type',
651 'config' => Array (
652 'type' => 'select',
653 'items' => Array (
654 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.0', '0'),
655 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.1', '1'),
656 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.2', '4'),
657 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.3', '7'),
658 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.4', '2'),
659 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.5', '3'),
660 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.6', '5'),
661 Array('LLL:EXT:cms/locallang_ttc.php:menu_type.I.7', '6')
662 ),
663 'default' => '0'
664 )
665 ),
666 'list_type' => Array (
667 'label' => 'LLL:EXT:cms/locallang_ttc.php:list_type',
668 'config' => Array (
669 'type' => 'select',
670 'items' => Array (
671 Array('','')
672 ),
673 'default' => '',
674 'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],
675 )
676 ),
677 'select_key' => Array (
678 'exclude' => 1,
679 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.code',
680 'config' => Array (
681 'type' => 'input',
682 'size' => '20',
683 'max' => '80',
684 'eval' => 'trim'
685 )
686 ),
687 'table_bgColor' => Array (
688 'exclude' => 1,
689 'label' => 'LLL:EXT:cms/locallang_ttc.php:table_bgColor',
690 'config' => Array (
691 'type' => 'select',
692 'items' => Array (
693 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),
694 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.1', '1'),
695 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.2', '2'),
696 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.3', '200'),
697 Array('-----','--div--'),
698 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.5', '240'),
699 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.6', '241'),
700 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.7', '242'),
701 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.8', '243'),
702 Array('LLL:EXT:cms/locallang_ttc.php:table_bgColor.I.9', '244')
703 ),
704 'default' => '0'
705 )
706 ),
707 'table_border' => Array (
708 'exclude' => 1,
709 'label' => 'LLL:EXT:cms/locallang_ttc.php:table_border',
710 'config' => Array (
711 'type' => 'input',
712 'size' => '3',
713 'max' => '3',
714 'eval' => 'int',
715 'checkbox' => '0',
716 'range' => Array (
717 'upper' => '20',
718 'lower' => '0'
719 ),
720 'default' => 0
721 )
722 ),
723 'table_cellspacing' => Array (
724 'exclude' => 1,
725 'label' => 'LLL:EXT:cms/locallang_ttc.php:table_cellspacing',
726 'config' => Array (
727 'type' => 'input',
728 'size' => '3',
729 'max' => '3',
730 'eval' => 'int',
731 'checkbox' => '0',
732 'range' => Array (
733 'upper' => '200',
734 'lower' => '0'
735 ),
736 'default' => 0
737 )
738 ),
739 'table_cellpadding' => Array (
740 'exclude' => 1,
741 'label' => 'LLL:EXT:cms/locallang_ttc.php:table_cellpadding',
742 'config' => Array (
743 'type' => 'input',
744 'size' => '3',
745 'max' => '3',
746 'eval' => 'int',
747 'checkbox' => '0',
748 'range' => Array (
749 'upper' => '200',
750 'lower' => '0'
751 ),
752 'default' => 0
753 )
754 ),
755 'media' => Array (
756 'label' => 'LLL:EXT:cms/locallang_ttc.php:media',
757 'config' => Array (
758 'type' => 'group',
759 'internal_type' => 'file',
760 'allowed' => '', // Must be empty for disallowed to work.
761 'disallowed' => 'php,php3',
762 'max_size' => '10000',
763 'uploadfolder' => 'uploads/media',
764 'show_thumbs' => '1',
765 'size' => '3',
766 'maxitems' => '10',
767 'minitems' => '0'
768 )
769 ),
770 'multimedia' => Array (
771 'label' => 'LLL:EXT:cms/locallang_ttc.php:multimedia',
772 'config' => Array (
773 'type' => 'group',
774 'internal_type' => 'file',
775 'allowed' => 'txt,html,htm,class,swf,swa,dcr,wav,avi,au,mov,asf,mpg,wmv,mp3',
776 'max_size' => '10000',
777 'uploadfolder' => 'uploads/media',
778 'size' => '2',
779 'maxitems' => '1',
780 'minitems' => '0'
781 )
782 ),
783 'filelink_size' => Array (
784 'label' => 'LLL:EXT:cms/locallang_ttc.php:filelink_size',
785 'config' => Array (
786 'type' => 'check'
787 )
788 ),
789 'records' => Array (
790 'label' => 'LLL:EXT:cms/locallang_ttc.php:records',
791 'config' => Array (
792 'type' => 'group',
793 'internal_type' => 'db',
794 'allowed' => 'tt_content',
795 'size' => '5',
796 'maxitems' => '200',
797 'minitems' => '0',
798 'show_thumbs' => '1'
799 )
800 ),
801 'spaceBefore' => Array (
802 'exclude' => 1,
803 'label' => 'LLL:EXT:cms/locallang_ttc.php:spaceBefore',
804 'config' => Array (
805 'type' => 'input',
806 'size' => '3',
807 'max' => '3',
808 'eval' => 'int',
809 'checkbox' => '0',
810 'range' => Array (
811 'upper' => '50',
812 'lower' => '0'
813 ),
814 'default' => 0
815 )
816 ),
817 'spaceAfter' => Array (
818 'exclude' => 1,
819 'label' => 'LLL:EXT:cms/locallang_ttc.php:spaceAfter',
820 'config' => Array (
821 'type' => 'input',
822 'size' => '3',
823 'max' => '3',
824 'eval' => 'int',
825 'checkbox' => '0',
826 'range' => Array (
827 'upper' => '50',
828 'lower' => '0'
829 ),
830 'default' => 0
831 )
832 ),
833 'section_frame' => Array (
834 'exclude' => 1,
835 'label' => 'LLL:EXT:cms/locallang_ttc.php:section_frame',
836 'config' => Array (
837 'type' => 'select',
838 'items' => Array (
839 Array('', '0'),
840 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.1', '1'),
841 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.2', '5'),
842 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.3', '6'),
843 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.4', '10'),
844 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.5', '11'),
845 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.6', '12'),
846 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.7', '20'),
847 Array('LLL:EXT:cms/locallang_ttc.php:section_frame.I.8', '21')
848 ),
849 'default' => '0'
850 )
851 ),
852 'splash_layout' => Array (
853 'exclude' => 1,
854 'label' => 'LLL:EXT:cms/locallang_ttc.php:splash_layout',
855 'config' => Array (
856 'type' => 'select',
857 'items' => Array (
858 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),
859 Array('LLL:EXT:cms/locallang_ttc.php:splash_layout.I.1', '1'),
860 Array('LLL:EXT:cms/locallang_ttc.php:splash_layout.I.2', '2'),
861 Array('LLL:EXT:cms/locallang_ttc.php:splash_layout.I.3', '3'),
862 Array('LLL:EXT:cms/locallang_ttc.php:splash_layout.I.4', '--div--'),
863 Array('LLL:EXT:cms/locallang_ttc.php:splash_layout.I.5', '20'),
864 ),
865 'default' => '0'
866 )
867 ),
868 'sectionIndex' => Array (
869 'exclude' => 1,
870 'label' => 'LLL:EXT:cms/locallang_ttc.php:sectionIndex',
871 'config' => Array (
872 'type' => 'check',
873 'default' => 1
874 )
875 ),
876 'linkToTop' => Array (
877 'exclude' => 1,
878 'label' => 'LLL:EXT:cms/locallang_ttc.php:linkToTop',
879 'config' => Array (
880 'type' => 'check'
881 )
882 ),
883 'rte_enabled' => Array (
884 'exclude' => 1,
885 'label' => 'LLL:EXT:cms/locallang_ttc.php:rte_enabled',
886 'config' => Array (
887 'type' => 'check',
888 'showIfRTE' => 1
889 )
890 ),
891 'pi_flexform' => array(
892 'label' => 'LLL:EXT:cms/locallang_ttc.php:pi_flexform',
893 'config' => Array (
894 'type' => 'flex',
895 'ds_pointerField' => 'list_type',
896 'ds' => array(
897 'default' => '
898 <T3DataStructure>
899 <ROOT>
900 <type>array</type>
901 <el>
902 <!-- Repeat an element like "xmlTitle" beneath for as many elements you like. Remember to name them uniquely -->
903 <xmlTitle>
904 <TCEforms>
905 <label>The Title:</label>
906 <config>
907 <type>input</type>
908 <size>48</size>
909 </config>
910 </TCEforms>
911 </xmlTitle>
912 </el>
913 </ROOT>
914 </T3DataStructure>
915 ',
916 )
917 )
918 ),
919 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
920 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
921 't3ver_label' => Array (
922 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
923 'config' => Array (
924 'type' => 'input',
925 'size' => '30',
926 'max' => '30',
927 )
928 ),
929 ),
930 'types' => Array (
931 '1' => Array('showitem' => 'CType'),
932 'header' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, subheader;;8'),
933 'text' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[flag=rte_enabled|mode=ts];3-3-3, rte_enabled, text_properties'),
934 'textpic' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;9;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[flag=rte_enabled|mode=ts];3-3-3, rte_enabled, text_properties, --div--, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
935 --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
936 --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
937 imagecaption;;5'),
938 'rte' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;;nowrap:richtext[*]:rte_transform[mode=ts_images-ts_reglinks];3-3-3'),
939 'image' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
940 --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
941 --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
942 imagecaption;;5'),
943 'bullets' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;;;3-3-3, bodytext;;9;nowrap, text_properties'),
944 'table' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;10;button;3-3-3, cols, bodytext;;9;nowrap:wizards[table], text_properties'),
945 'splash' => Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2, splash_layout, bodytext;;;;3-3-3, image;;6'),
946 'uploads' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, media;;;;5-5-5,
947 select_key;LLL:EXT:cms/locallang_ttc.php:select_key.ALT.uploads,
948 layout;;10;button, filelink_size,
949 imagecaption;LLL:EXT:cms/locallang_ttc.php:imagecaption.ALT.uploads;;nowrap'),
950 'multimedia' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, multimedia;;;;5-5-5, bodytext;LLL:EXT:lang/locallang_general.php:LGL.parameters;;nowrap'),
951 'script' => Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2, select_key;;;;5-5-5, pages;;12, bodytext;LLL:EXT:lang/locallang_general.php:LGL.parameters;;nowrap,
952 imagecaption;LLL:EXT:cms/locallang_ttc.php:imagecaption.ALT.script'),
953 'menu' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, menu_type;;;;5-5-5, pages'),
954 'mailform' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2,
955 bodytext;LLL:EXT:cms/locallang_ttc.php:bodytext.ALT.mailform;;nowrap:wizards[forms];5-5-5,
956 pages;LLL:EXT:cms/locallang_ttc.php:pages.ALT.mailform,
957 subheader;LLL:EXT:cms/locallang_ttc.php:subheader.ALT.mailform'),
958 'search' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2,
959 pages;LLL:EXT:cms/locallang_ttc.php:pages.ALT.search;;;5-5-5'),
960 'login' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2,
961 pages;LLL:EXT:cms/locallang_ttc.php:pages.ALT.login;;;5-5-5'),
962 'shortcut' => Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2, records;;;;5-5-5, layout'),
963 'list' => Array(
964 'showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, --div--, list_type;;;;5-5-5, layout, select_key, pages;;12',
965 'subtype_value_field' => 'list_type',
966 'subtypes_excludelist' => Array(
967 '' => 'layout,select_key,pages', // When no plugin is selected.
968 '3' => 'layout',
969 // '4' => 'layout', // List type forum
970 '2' => 'layout',
971 '5' => 'layout',
972 '9' => 'layout',
973 '0' => 'layout',
974 '6' => 'layout',
975 '7' => 'layout',
976 '1' => 'layout',
977 '8' => 'layout',
978 'indexed_search' => 'layout',
979 '11' => 'layout',
980 '20' => 'layout',
981 '21' => 'layout'
982 )
983 ),
984 'div' => Array('showitem' => 'CType;;14;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2'),
985 'html' => Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2,
986 bodytext;LLL:EXT:cms/locallang_ttc.php:bodytext.ALT.html;;nowrap;3-3-3')
987 ),
988 'palettes' => Array (
989 '1' => Array('showitem' => 'hidden, starttime, endtime, fe_group'),
990 '2' => Array('showitem' => 'imagecols, image_noRows, imageborder'),
991 '3' => Array('showitem' => 'header_position, header_layout, header_link, date'),
992 '4' => Array('showitem' => 'sys_language_uid, l18n_parent, colPos, spaceBefore, spaceAfter, section_frame, sectionIndex, linkToTop'),
993 '5' => Array('showitem' => 'imagecaption_position'),
994 '6' => Array('showitem' => 'imagewidth,image_link'),
995 '7' => Array('showitem' => 'image_link, image_zoom'),
996 '8' => Array('showitem' => 'layout'),
997 '9' => Array('showitem' => 'text_align,text_face,text_size,text_color'),
998 '10' => Array('showitem' => 'table_bgColor, table_border, table_cellspacing, table_cellpadding'),
999 '11' => Array('showitem' => 'image_compression, image_effects, image_frames'),
1000 '12' => Array('showitem' => 'recursive'),
1001 '13' => Array('showitem' => 'imageheight'),
1002 '14' => Array('showitem' => 'sys_language_uid, l18n_parent, colPos')
1003 )
1004 );
1005
1006
1007
1008 ?>