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