56b28f00b5d3718f3b6b769039a2d4d2223f089a
[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 = [
6 'header_position' => [
7 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position',
8 'exclude' => true,
9 'config' => [
10 'type' => 'select',
11 'renderType' => 'selectSingle',
12 'items' => [
13 [
14 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value',
15 ''
16 ],
17 [
18 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.1',
19 'center'
20 ],
21 [
22 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_position.I.2',
23 'right'
24 ],
25 [
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' => [
34 'exclude' => true,
35 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression',
36 'config' => [
37 'type' => 'select',
38 'renderType' => 'selectSingle',
39 'items' => [
40 [
41 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value',
42 0
43 ],
44 [
45 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.1',
46 1
47 ],
48 [
49 'GIF/256',
50 10
51 ],
52 [
53 'GIF/128',
54 11
55 ],
56 [
57 'GIF/64',
58 12
59 ],
60 [
61 'GIF/32',
62 13
63 ],
64 [
65 'GIF/16',
66 14
67 ],
68 [
69 'GIF/8',
70 15
71 ],
72 [
73 'PNG',
74 39
75 ],
76 [
77 'PNG/256',
78 30
79 ],
80 [
81 'PNG/128',
82 31
83 ],
84 [
85 'PNG/64',
86 32
87 ],
88 [
89 'PNG/32',
90 33
91 ],
92 [
93 'PNG/16',
94 34
95 ],
96 [
97 'PNG/8',
98 35
99 ],
100 [
101 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.15',
102 21
103 ],
104 [
105 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.16',
106 22
107 ],
108 [
109 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.17',
110 24
111 ],
112 [
113 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.18',
114 26
115 ],
116 [
117 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_compression.I.19',
118 28
119 ]
120 ]
121 ]
122 ],
123 'image_effects' => [
124 'exclude' => true,
125 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects',
126 'config' => [
127 'type' => 'select',
128 'renderType' => 'selectSingle',
129 'items' => [
130 [
131 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.0',
132 0
133 ],
134 [
135 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.1',
136 1
137 ],
138 [
139 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.2',
140 2
141 ],
142 [
143 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.3',
144 3
145 ],
146 [
147 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.4',
148 10
149 ],
150 [
151 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.5',
152 11
153 ],
154 [
155 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.6',
156 20
157 ],
158 [
159 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.7',
160 23
161 ],
162 [
163 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.8',
164 25
165 ],
166 [
167 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_effects.I.9',
168 26
169 ]
170 ]
171 ]
172 ],
173 'image_noRows' => [
174 'exclude' => true,
175 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_noRows',
176 'config' => [
177 'type' => 'check',
178 'items' => [
179 '1' => [
180 '0' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:image_noRows.I.0'
181 ]
182 ]
183 ]
184 ],
185 'section_frame' => [
186 'exclude' => true,
187 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame',
188 'config' => [
189 'type' => 'select',
190 'renderType' => 'selectSingle',
191 'items' => [
192 [
193 '',
194 '0'
195 ],
196 [
197 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.1',
198 '1'
199 ],
200 [
201 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.2',
202 '5'
203 ],
204 [
205 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.3',
206 '6'
207 ],
208 [
209 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.4',
210 '10'
211 ],
212 [
213 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.5',
214 '11'
215 ],
216 [
217 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.6',
218 '12'
219 ],
220 [
221 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:section_frame.I.7',
222 '20'
223 ],
224 [
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' => [
233 'exclude' => true,
234 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceAfter',
235 'config' => [
236 'type' => 'input',
237 'size' => 5,
238 'max' => 5,
239 'eval' => 'int',
240 'range' => [
241 'lower' => 0
242 ],
243 'default' => 0
244 ]
245 ],
246 'spaceBefore' => [
247 'exclude' => true,
248 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:spaceBefore',
249 'config' => [
250 'type' => 'input',
251 'size' => 5,
252 'max' => 5,
253 'eval' => 'int',
254 'range' => [
255 'lower' => 0
256 ],
257 'default' => 0
258 ]
259 ],
260 'table_bgColor' => [
261 'exclude' => true,
262 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor',
263 'config' => [
264 'type' => 'select',
265 'renderType' => 'selectSingle',
266 'items' => [
267 [
268 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value',
269 '0'
270 ],
271 [
272 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.1',
273 '1'
274 ],
275 [
276 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.2',
277 '2'
278 ],
279 [
280 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.3',
281 '200'
282 ],
283 [
284 '-----',
285 '--div--'
286 ],
287 [
288 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.5',
289 '240'
290 ],
291 [
292 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.6',
293 '241'
294 ],
295 [
296 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.7',
297 '242'
298 ],
299 [
300 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_bgColor.I.8',
301 '243'
302 ],
303 [
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' => [
312 'exclude' => true,
313 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_border',
314 'config' => [
315 'type' => 'input',
316 'size' => 3,
317 'max' => 3,
318 'eval' => 'int',
319 'range' => [
320 'upper' => 20,
321 'lower' => 0
322 ],
323 'default' => 0
324 ]
325 ],
326 'table_cellpadding' => [
327 'exclude' => true,
328 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_cellpadding',
329 'config' => [
330 'type' => 'input',
331 'size' => 3,
332 'max' => 3,
333 'eval' => 'int',
334 'range' => [
335 'upper' => '200',
336 'lower' => 0
337 ],
338 'default' => 0
339 ]
340 ],
341 'table_cellspacing' => [
342 'exclude' => true,
343 'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:table_cellspacing',
344 'config' => [
345 'type' => 'input',
346 'size' => 3,
347 'max' => 3,
348 'eval' => 'int',
349 'range' => [
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/Configuration/FlexForms/table.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 [
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 [
378 [
379 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.1',
380 'text',
381 'content-text'
382 ],
383 [
384 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:CType.I.2',
385 'textpic',
386 'content-textpic'
387 ],
388 [
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 [
401 'header' => [
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' => [
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' => [
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' => [
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' => [
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' => [
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,
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,rowDescription
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,
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,rowDescription
494 ';
495 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'])) {
496 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'] = [];
497 }
498 if (!is_array($GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'])) {
499 $GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides']['bodytext'] = [];
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';
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,
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,rowDescription
523 ';
524 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'])) {
525 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides'] = [];
526 }
527 if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'])) {
528 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext'] = [];
529 }
530 $GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['bodytext']['defaultExtras'] = $baseDefaultExtrasOfBodytext . 'richtext:rte_transform';
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,
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,rowDescription
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,
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,rowDescription
560 ';
561 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'])) {
562 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides'] = [];
563 }
564 if (!is_array($GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'])) {
565 $GLOBALS['TCA']['tt_content']['types']['bullets']['columnsOverrides']['bodytext'] = [];
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,
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,rowDescription
584 ';
585 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'])) {
586 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides'] = [];
587 }
588 if (!is_array($GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'])) {
589 $GLOBALS['TCA']['tt_content']['types']['table']['columnsOverrides']['bodytext'] = [];
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,
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,rowDescription
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,
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,rowDescription
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,
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,rowDescription
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,
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,rowDescription
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,
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,rowDescription
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,
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,rowDescription
674 ';
675
676 $GLOBALS['TCA']['tt_content']['columns']['section_frame']['config']['items'][0] = [
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] = [
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::makeCategorizable('css_styled_content', 'tt_content', 'categories', [], true);