ee72f9460f0d1c9d32a8d6a17e145e5b53d1bcca
[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 'canNotCollapse' => 1
422 ),
423 'headers' => array(
424 'showitem' => '
425 header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel,
426 --linebreak--,
427 header_layout;LLL:EXT:cms/locallang_ttc.xlf:header_layout_formlabel,
428 header_position;LLL:EXT:cms/locallang_ttc.xlf:header_position_formlabel,
429 date;LLL:EXT:cms/locallang_ttc.xlf:date_formlabel,
430 --linebreak--,
431 header_link;LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel,
432 --linebreak--,
433 subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader_formlabel
434 ',
435 'canNotCollapse' => 1
436 ),
437 'imageblock' => array(
438 'showitem' => '
439 imageorient;LLL:EXT:cms/locallang_ttc.xlf:imageorient_formlabel,
440 imagecols;LLL:EXT:cms/locallang_ttc.xlf:imagecols_formlabel,
441 --linebreak--,
442 image_noRows;LLL:EXT:cms/locallang_ttc.xlf:image_noRows_formlabel,
443 imagecaption_position;LLL:EXT:cms/locallang_ttc.xlf:imagecaption_position_formlabel
444 ',
445 'canNotCollapse' => 1
446 ),
447 'tablelayout' => array(
448 'showitem' => '
449 table_bgColor;LLL:EXT:cms/locallang_ttc.xlf:table_bgColor_formlabel,
450 table_border;LLL:EXT:cms/locallang_ttc.xlf:table_border_formlabel,
451 table_cellspacing;LLL:EXT:cms/locallang_ttc.xlf:table_cellspacing_formlabel,
452 table_cellpadding;LLL:EXT:cms/locallang_ttc.xlf:table_cellpadding_formlabel
453 ',
454 'canNotCollapse' => 1
455 ),
456 'visibility' => array(
457 'showitem' => '
458 hidden;LLL:EXT:cms/locallang_ttc.xlf:hidden_formlabel,
459 sectionIndex;LLL:EXT:cms/locallang_ttc.xlf:sectionIndex_formlabel,
460 linkToTop;LLL:EXT:cms/locallang_ttc.xlf:linkToTop_formlabel
461 ',
462 'canNotCollapse' => 1
463 ),
464 'frames' => array(
465 'showitem' => '
466 layout;LLL:EXT:cms/locallang_ttc.xlf:layout_formlabel,
467 spaceBefore;LLL:EXT:cms/locallang_ttc.xlf:spaceBefore_formlabel,
468 spaceAfter;LLL:EXT:cms/locallang_ttc.xlf:spaceAfter_formlabel,
469 section_frame;LLL:EXT:cms/locallang_ttc.xlf:section_frame_formlabel
470 ',
471 'canNotCollapse' => 1
472 )
473 )
474 );
475
476 $GLOBALS['TCA']['tt_content']['palettes']['image_settings']['canNotCollapse'] = 1;
477 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
478 'tt_content',
479 'image_settings',
480 'imagewidth;LLL:EXT:cms/locallang_ttc.xlf:imagewidth_formlabel,
481 imageheight;LLL:EXT:cms/locallang_ttc.xlf:imageheight_formlabel,
482 imageborder;LLL:EXT:cms/locallang_ttc.xlf:imageborder_formlabel,
483 --linebreak--,
484 image_compression;LLL:EXT:cms/locallang_ttc.xlf:image_compression_formlabel,
485 image_effects;LLL:EXT:cms/locallang_ttc.xlf:image_effects_formlabel,'
486 );
487
488 // Field arrangement for CE "header"
489 $GLOBALS['TCA']['tt_content']['types']['header']['showitem'] = '
490 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
491 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.headers;headers,
492 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
493 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
494 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
495 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
496 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
497 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
498 ';
499
500 // Field arrangement for CE "text"
501 $GLOBALS['TCA']['tt_content']['types']['text']['showitem'] = '
502 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
503 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
504 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext_formlabel,
505 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
506 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
507 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
508 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
509 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
510 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
511 ';
512 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'])) {
513 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'] = array();
514 }
515 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'])) {
516 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'] = array();
517 }
518 $baseDefaultExtrasOfBodytext = '';
519 if (!empty($GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'])) {
520 $baseDefaultExtrasOfBodytext = $GLOBALS['TCA']['tt_content']['columns']['bodytext']['defaultExtras'] . ':';
521 }
522 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform[mode=ts_css]';
523
524 // Field arrangement for CE "textpic"
525 $GLOBALS['TCA']['tt_content']['types']['textpic']['showitem'] = '
526 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
527 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
528 bodytext;Text,
529 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.images,
530 image,
531 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imagelinks;imagelinks,
532 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
533 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
534 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.image_settings;image_settings,
535 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imageblock;imageblock,
536 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
537 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
538 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
539 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
540 ';
541 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'])) {
542 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'] = array();
543 }
544 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'])) {
545 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'] = array();
546 }
547 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform[mode=ts_css]';
548
549 // Field arrangement for CE "image"
550 $GLOBALS['TCA']['tt_content']['types']['image']['showitem'] = '
551 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
552 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
553 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.images,
554 image,
555 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imagelinks;imagelinks,
556 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
557 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
558 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.image_settings;image_settings,
559 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.imageblock;imageblock,
560 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
561 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
562 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
563 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
564 ';
565
566 // Field arrangement for CE "bullets"
567 $GLOBALS['TCA']['tt_content']['types']['bullets']['showitem'] = '
568 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
569 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
570 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.bulletlist_formlabel,
571 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
572 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
573 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
574 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
575 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
576 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
577 ';
578 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'])) {
579 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'] = array();
580 }
581 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'])) {
582 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'] = array();
583 }
584 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap';
585
586 // Field arrangement for CE "table"
587 $GLOBALS['TCA']['tt_content']['types']['table']['showitem'] = '
588 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
589 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
590 --div--;LLL:EXT:cms/locallang_ttc.xlf:CType.I.5,
591 layout, --palette--;;10,
592 cols,
593 bodytext,
594 pi_flexform,
595 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
596 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
597 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.table_layout;tablelayout,
598 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
599 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
600 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
601 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
602 ';
603 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'])) {
604 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'] = array();
605 }
606 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'])) {
607 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'] = array();
608 }
609 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'nowrap:wizards[table]';
610
611 // Field arrangement for CE "uploads"
612 $GLOBALS['TCA']['tt_content']['types']['uploads']['showitem'] = '
613 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
614 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
615 --palette--;LLL:EXT:cms/locallang_ttc.xlf:media;uploads,
616 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
617 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
618 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.uploads_layout;uploadslayout,
619 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
620 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
621 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
622 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
623 ';
624
625 // Field arrangement for CE "menu"
626 $GLOBALS['TCA']['tt_content']['types']['menu']['showitem'] = '
627 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
628 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
629 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.menu;menu,
630 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.menu_accessibility;menu_accessibility,
631 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
632 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
633 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
634 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
635 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
636 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
637 ';
638
639 // Field arrangement for CE "shortcut"
640 $GLOBALS['TCA']['tt_content']['types']['shortcut']['showitem'] = '
641 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
642 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.shortcut_formlabel,
643 records;LLL:EXT:cms/locallang_ttc.xlf:records_formlabel,
644 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
645 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
646 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
647 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
648 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
649 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
650 ';
651
652 // Field arrangement for CE "list"
653 $GLOBALS['TCA']['tt_content']['types']['list']['showitem'] = '
654 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
655 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
656 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.plugin,
657 list_type;LLL:EXT:cms/locallang_ttc.xlf:list_type_formlabel,
658 select_key;LLL:EXT:cms/locallang_ttc.xlf:select_key_formlabel,
659 pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.list_formlabel,
660 recursive,
661 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
662 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
663 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
664 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
665 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
666 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
667 ';
668
669 // Field arrangement for CE "div"
670 $GLOBALS['TCA']['tt_content']['types']['div']['showitem'] = '
671 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
672 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.div_formlabel,
673 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
674 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
675 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
676 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
677 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
678 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
679 ';
680
681 // Field arrangement for CE "html"
682 $GLOBALS['TCA']['tt_content']['types']['html']['showitem'] = '
683 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
684 header;LLL:EXT:cms/locallang_ttc.xlf:header.ALT.html_formlabel,
685 bodytext;LLL:EXT:cms/locallang_ttc.xlf:bodytext.ALT.html_formlabel,
686 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
687 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
688 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
689 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
690 --palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
691 --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended
692 ';
693
694 $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][0] = array(
695 'LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.0', '0'
696 );
697
698 $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][9] = array(
699 'LLL:EXT:css_styled_content/locallang_db.xlf:tt_content.tx_cssstyledcontent_section_frame.I.9', '66'
700 );
701
702 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/', 'CSS Styled Content');
703 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('css_styled_content', 'static/v6.2/', 'CSS Styled Content TYPO3 v6.2');