[!!!][TASK] FormEngine: Drop "Show secondary options"
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / Configuration / TCA / Overrides / tt_content.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 //Extra fields for the tt_content table
5 $extraContentColumns = array(
6 'header_position' => array(
7 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:header_position',
8 'exclude' => TRUE,
9 'config' => array(
10 'type' => 'select',
11 'items' => array(
12 array(
13 'LLL:EXT:lang/locallang_general.xlf:LGL.default_value',
14 ''
15 ),
16 array(
17 'LLL:EXT:cms/locallang_ttc.xlf:header_position.I.1',
18 'center'
19 ),
20 array(
21 'LLL:EXT:cms/locallang_ttc.xlf:header_position.I.2',
22 'right'
23 ),
24 array(
25 'LLL:EXT:cms/locallang_ttc.xlf:header_position.I.3',
26 'left'
27 )
28 ),
29 'default' => ''
30 )
31 ),
32 'image_compression' => array(
33 'exclude' => TRUE,
34 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_compression',
35 'config' => array(
36 'type' => 'select',
37 'items' => array(
38 array(
39 'LLL:EXT:lang/locallang_general.xlf:LGL.default_value',
40 0
41 ),
42 array(
43 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.1',
44 1
45 ),
46 array(
47 'GIF/256',
48 10
49 ),
50 array(
51 'GIF/128',
52 11
53 ),
54 array(
55 'GIF/64',
56 12
57 ),
58 array(
59 'GIF/32',
60 13
61 ),
62 array(
63 'GIF/16',
64 14
65 ),
66 array(
67 'GIF/8',
68 15
69 ),
70 array(
71 'PNG',
72 39
73 ),
74 array(
75 'PNG/256',
76 30
77 ),
78 array(
79 'PNG/128',
80 31
81 ),
82 array(
83 'PNG/64',
84 32
85 ),
86 array(
87 'PNG/32',
88 33
89 ),
90 array(
91 'PNG/16',
92 34
93 ),
94 array(
95 'PNG/8',
96 35
97 ),
98 array(
99 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.15',
100 21
101 ),
102 array(
103 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.16',
104 22
105 ),
106 array(
107 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.17',
108 24
109 ),
110 array(
111 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.18',
112 26
113 ),
114 array(
115 'LLL:EXT:cms/locallang_ttc.xlf:image_compression.I.19',
116 28
117 )
118 )
119 )
120 ),
121 'image_effects' => array(
122 'exclude' => TRUE,
123 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_effects',
124 'config' => array(
125 'type' => 'select',
126 'items' => array(
127 array(
128 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.0',
129 0
130 ),
131 array(
132 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.1',
133 1
134 ),
135 array(
136 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.2',
137 2
138 ),
139 array(
140 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.3',
141 3
142 ),
143 array(
144 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.4',
145 10
146 ),
147 array(
148 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.5',
149 11
150 ),
151 array(
152 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.6',
153 20
154 ),
155 array(
156 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.7',
157 23
158 ),
159 array(
160 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.8',
161 25
162 ),
163 array(
164 'LLL:EXT:cms/locallang_ttc.xlf:image_effects.I.9',
165 26
166 )
167 )
168 )
169 ),
170 'image_noRows' => array(
171 'exclude' => TRUE,
172 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:image_noRows',
173 'config' => array(
174 'type' => 'check',
175 'items' => array(
176 '1' => array(
177 '0' => 'LLL:EXT:cms/locallang_ttc.xlf:image_noRows.I.0'
178 )
179 )
180 )
181 ),
182 'section_frame' => array(
183 'exclude' => TRUE,
184 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:section_frame',
185 'config' => array(
186 'type' => 'select',
187 'items' => array(
188 array(
189 '',
190 '0'
191 ),
192 array(
193 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.1',
194 '1'
195 ),
196 array(
197 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.2',
198 '5'
199 ),
200 array(
201 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.3',
202 '6'
203 ),
204 array(
205 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.4',
206 '10'
207 ),
208 array(
209 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.5',
210 '11'
211 ),
212 array(
213 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.6',
214 '12'
215 ),
216 array(
217 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.7',
218 '20'
219 ),
220 array(
221 'LLL:EXT:cms/locallang_ttc.xlf:section_frame.I.8',
222 '21'
223 )
224 ),
225 'default' => '0'
226 )
227 ),
228 'spaceAfter' => array(
229 'exclude' => TRUE,
230 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:spaceAfter',
231 'config' => array(
232 'type' => 'input',
233 'size' => '5',
234 'max' => '5',
235 'eval' => 'int',
236 'range' => array(
237 'lower' => '0'
238 ),
239 'default' => 0
240 )
241 ),
242 'spaceBefore' => array(
243 'exclude' => TRUE,
244 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:spaceBefore',
245 'config' => array(
246 'type' => 'input',
247 'size' => '5',
248 'max' => '5',
249 'eval' => 'int',
250 'range' => array(
251 'lower' => '0'
252 ),
253 'default' => 0
254 )
255 ),
256 'table_bgColor' => array(
257 'exclude' => TRUE,
258 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor',
259 'config' => array(
260 'type' => 'select',
261 'items' => array(
262 array(
263 'LLL:EXT:lang/locallang_general.xlf:LGL.default_value',
264 '0'
265 ),
266 array(
267 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.1',
268 '1'
269 ),
270 array(
271 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.2',
272 '2'
273 ),
274 array(
275 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.3',
276 '200'
277 ),
278 array(
279 '-----',
280 '--div--'
281 ),
282 array(
283 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.5',
284 '240'
285 ),
286 array(
287 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.6',
288 '241'
289 ),
290 array(
291 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.7',
292 '242'
293 ),
294 array(
295 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.8',
296 '243'
297 ),
298 array(
299 'LLL:EXT:cms/locallang_ttc.xlf:table_bgColor.I.9',
300 '244'
301 )
302 ),
303 'default' => '0'
304 )
305 ),
306 'table_border' => array(
307 'exclude' => TRUE,
308 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:table_border',
309 'config' => array(
310 'type' => 'input',
311 'size' => '3',
312 'max' => '3',
313 'eval' => 'int',
314 'range' => array(
315 'upper' => '20',
316 'lower' => '0'
317 ),
318 'default' => 0
319 )
320 ),
321 'table_cellpadding' => array(
322 'exclude' => TRUE,
323 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:table_cellpadding',
324 'config' => array(
325 'type' => 'input',
326 'size' => '3',
327 'max' => '3',
328 'eval' => 'int',
329 'range' => array(
330 'upper' => '200',
331 'lower' => '0'
332 ),
333 'default' => 0
334 )
335 ),
336 'table_cellspacing' => array(
337 'exclude' => TRUE,
338 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:table_cellspacing',
339 'config' => array(
340 'type' => 'input',
341 'size' => '3',
342 'max' => '3',
343 'eval' => 'int',
344 'range' => array(
345 'upper' => '200',
346 'lower' => '0'
347 ),
348 'default' => 0
349 )
350 )
351 );
352
353 // Adding fields to the tt_content table definition in TCA
354 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $extraContentColumns);
355
356 // Add flexform
357 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('*', 'FILE:EXT:css_styled_content/flexform_ds.xml', 'table');
358
359 // Add content elements
360 $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'] = array_merge(
361 $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'],
362 array(
363 'textpic' => 'mimetypes-x-content-text-picture',
364 'image' => 'mimetypes-x-content-image',
365 'text' => 'mimetypes-x-content-text'
366 )
367 );
368 $GLOBALS['TCA']['tt_content']['ctrl']['typeicons'] = array_merge(
369 $GLOBALS['TCA']['tt_content']['ctrl']['typeicons'],
370 array(
371 'textpic' => 'tt_content_textpic.gif',
372 'image' => 'tt_content_image.gif',
373 'text' => 'tt_content.gif'
374 )
375 );
376 array_splice(
377 $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'],
378 2,
379 0,
380 array(
381 array(
382 'LLL:EXT:cms/locallang_ttc.xlf:CType.I.1',
383 'text',
384 'i/tt_content.gif'
385 ),
386 array(
387 'LLL:EXT:cms/locallang_ttc.xlf:CType.I.2',
388 'textpic',
389 'i/tt_content_textpic.gif'
390 ),
391 array(
392 'LLL:EXT:cms/locallang_ttc.xlf:CType.I.3',
393 'image',
394 'i/tt_content_image.gif'
395 )
396 )
397 );
398
399 // Add palettes
400 $GLOBALS['TCA']['tt_content']['palettes'] = array_replace(
401 $GLOBALS['TCA']['tt_content']['palettes'],
402 array(
403 '10' => array(
404 'showitem' => '
405 table_bgColor,
406 table_border,
407 table_cellspacing,
408 table_cellpadding
409 '
410 ),
411 'header' => array(
412 'showitem' => '
413 header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel,
414 --linebreak--,
415 header_layout;LLL:EXT:cms/locallang_ttc.xlf:header_layout_formlabel,
416 header_position;LLL:EXT:cms/locallang_ttc.xlf:header_position_formlabel,
417 date;LLL:EXT:cms/locallang_ttc.xlf:date_formlabel,
418 --linebreak--,
419 header_link;LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel
420 ',
421 ),
422 'headers' => array(
423 'showitem' => '
424 header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel,
425 --linebreak--,
426 header_layout;LLL:EXT:cms/locallang_ttc.xlf:header_layout_formlabel,
427 header_position;LLL:EXT:cms/locallang_ttc.xlf:header_position_formlabel,
428 date;LLL:EXT:cms/locallang_ttc.xlf:date_formlabel,
429 --linebreak--,
430 header_link;LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel,
431 --linebreak--,
432 subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader_formlabel
433 ',
434 ),
435 'imageblock' => array(
436 'showitem' => '
437 imageorient;LLL:EXT:cms/locallang_ttc.xlf:imageorient_formlabel,
438 imagecols;LLL:EXT:cms/locallang_ttc.xlf:imagecols_formlabel,
439 --linebreak--,
440 image_noRows;LLL:EXT:cms/locallang_ttc.xlf:image_noRows_formlabel,
441 imagecaption_position;LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position_formlabel
442 ',
443 ),
444 'tablelayout' => array(
445 'showitem' => '
446 table_bgColor;LLL:EXT:cms/locallang_ttc.xlf:table_bgColor_formlabel,
447 table_border;LLL:EXT:cms/locallang_ttc.xlf:table_border_formlabel,
448 table_cellspacing;LLL:EXT:cms/locallang_ttc.xlf:table_cellspacing_formlabel,
449 table_cellpadding;LLL:EXT:cms/locallang_ttc.xlf:table_cellpadding_formlabel
450 ',
451 ),
452 'visibility' => array(
453 'showitem' => '
454 hidden;LLL:EXT:cms/locallang_ttc.xlf:hidden_formlabel,
455 sectionIndex;LLL:EXT:cms/locallang_ttc.xlf:sectionIndex_formlabel,
456 linkToTop;LLL:EXT:cms/locallang_ttc.xlf:linkToTop_formlabel
457 ',
458 ),
459 'frames' => array(
460 'showitem' => '
461 layout;LLL:EXT:cms/locallang_ttc.xlf:layout_formlabel,
462 spaceBefore;LLL:EXT:cms/locallang_ttc.xlf:spaceBefore_formlabel,
463 spaceAfter;LLL:EXT:cms/locallang_ttc.xlf:spaceAfter_formlabel,
464 section_frame;LLL:EXT:cms/locallang_ttc.xlf:section_frame_formlabel
465 ',
466 )
467 )
468 );
469
470 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
471 'tt_content',
472 'image_settings',
473 'imagewidth;LLL:EXT:cms/locallang_ttc.xlf:imagewidth_formlabel,
474 imageheight;LLL:EXT:cms/locallang_ttc.xlf:imageheight_formlabel,
475 imageborder;LLL:EXT:cms/locallang_ttc.xlf:imageborder_formlabel,
476 --linebreak--,
477 image_compression;LLL:EXT:cms/locallang_ttc.xlf:image_compression_formlabel,
478 image_effects;LLL:EXT:cms/locallang_ttc.xlf:image_effects_formlabel,'
479 );
480
481 // Field arrangement for CE "header"
482 $GLOBALS['TCA']['tt_content']['types']['header']['showitem'] = '
483 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
484 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.headers;headers,
485 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
486 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
487 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
488 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
489 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
490 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
491 ';
492
493 // Field arrangement for CE "text"
494 $GLOBALS['TCA']['tt_content']['types']['text']['showitem'] = '
495 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
496 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
497 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext_formlabel,
498 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
499 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
500 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
501 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
502 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
503 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
504 ';
505 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'])) {
506 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'] = array();
507 }
508 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'])) {
509 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'] = array();
510 }
511 $baseDefaultExtrasOfBodytext = '';
512 if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) {
513 $baseDefaultExtrasOfBodytext = $GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'] . ':';
514 }
515 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform[mode=ts_css]';
516
517 // Field arrangement for CE "textpic"
518 $GLOBALS['TCA']['tt_content']['types']['textpic']['showitem'] = '
519 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
520 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
521 bodytext;Text,
522 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.images,
523 image,
524 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imagelinks;imagelinks,
525 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
526 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
527 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.image_settings;image_settings,
528 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imageblock;imageblock,
529 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
530 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
531 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
532 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
533 ';
534 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'])) {
535 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'] = array();
536 }
537 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'])) {
538 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'] = array();
539 }
540 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform[mode=ts_css]';
541
542 // Field arrangement for CE "image"
543 $GLOBALS['TCA']['tt_content']['types']['image']['showitem'] = '
544 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
545 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
546 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.images,
547 image,
548 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imagelinks;imagelinks,
549 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
550 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
551 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.image_settings;image_settings,
552 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imageblock;imageblock,
553 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
554 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
555 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
556 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
557 ';
558
559 // Field arrangement for CE "bullets"
560 $GLOBALS['TCA']['tt_content']['types']['bullets']['showitem'] = '
561 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
562 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
563 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.bulletlist_formlabel,
564 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
565 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
566 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
567 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
568 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
569 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
570 ';
571 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'])) {
572 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'] = array();
573 }
574 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'])) {
575 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'] = array();
576 }
577 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap';
578
579 // Field arrangement for CE "table"
580 $GLOBALS['TCA']['tt_content']['types']['table']['showitem'] = '
581 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
582 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
583 --div--;LLL:EXT:cms/locallang_ttc.xlf:CType.I.5,
584 layout, --palette--;;10,
585 cols,
586 bodytext,
587 pi_flexform,
588 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
589 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
590 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.table_layout;tablelayout,
591 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
592 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
593 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
594 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
595 ';
596 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'])) {
597 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'] = array();
598 }
599 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'])) {
600 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'] = array();
601 }
602 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap:wizards[table]';
603
604 // Field arrangement for CE "uploads"
605 $GLOBALS['TCA']['tt_content']['types']['uploads']['showitem'] = '
606 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
607 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
608 --palette--;LLL:EXT:cms/locallang_ttc.xlf:media;uploads,
609 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
610 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
611 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.uploads_layout;uploadslayout,
612 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
613 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
614 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
615 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
616 ';
617
618 // Field arrangement for CE "menu"
619 $GLOBALS['TCA']['tt_content']['types']['menu']['showitem'] = '
620 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
621 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
622 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.menu;menu,
623 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.menu_accessibility;menu_accessibility,
624 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
625 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
626 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
627 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
628 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
629 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
630 ';
631
632 // Field arrangement for CE "shortcut"
633 $GLOBALS['TCA']['tt_content']['types']['shortcut']['showitem'] = '
634 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
635 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.shortcut_formlabel,
636 records;LLL:EXT:cms/locallang_ttc.xlf:records_formlabel,
637 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
638 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
639 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
640 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
641 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
642 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
643 ';
644
645 // Field arrangement for CE "list"
646 $GLOBALS['TCA']['tt_content']['types']['list']['showitem'] = '
647 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
648 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
649 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.plugin,
650 list_type;LLL:EXT:cms/locallang_ttc.xlf:list_type_formlabel,
651 select_key;LLL:EXT:cms/locallang_ttc.xlf:select_key_formlabel,
652 pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.list_formlabel,
653 recursive,
654 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
655 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
656 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
657 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
658 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
659 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
660 ';
661
662 // Field arrangement for CE "div"
663 $GLOBALS['TCA']['tt_content']['types']['div']['showitem'] = '
664 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
665 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.div_formlabel,
666 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
667 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
668 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
669 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
670 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
671 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
672 ';
673
674 // Field arrangement for CE "html"
675 $GLOBALS['TCA']['tt_content']['types']['html']['showitem'] = '
676 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
677 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.html_formlabel,
678 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.html_formlabel,
679 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
680 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
681 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
682 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
683 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
684 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
685 ';
686
687 $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][0] = array(
688 'LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.0', '0'
689 );
690
691 $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][9] = array(
692 'LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.9', '66'
693 );
694
695 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/', 'CSS Styled Content');
696 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v6.2/', 'CSS Styled Content TYPO3 v6.2');