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