[TASK] Cleanup TCA
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / Fixtures / Extensions / irre_tutorial / Configuration / TCA / Overrides / tt_content.php
1 <?php
2
3 // Show copied tt_content records in frontend request
4 $GLOBALS['TCA']['tt_content']['ctrl']['hideAtCopy'] = false;
5
6 $GLOBALS['TCA']['tt_content']['ctrl']['shadowColumnsForNewPlaceholders'] = 'tx_irretutorial_1ncsv_hotels';
7 $GLOBALS['TCA']['tt_content']['ctrl']['shadowColumnsForMovePlaceholders'] = 'tx_irretutorial_1ncsv_hotels';
8
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
10 'tt_content',
11 array(
12 'tx_irretutorial_1nff_hotels' => array(
13 'exclude' => true,
14 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tt_content.tx_irretutorial_1nff_hotels',
15 'config' => array(
16 'type' => 'inline',
17 'foreign_table' => 'tx_irretutorial_1nff_hotel',
18 'foreign_field' => 'parentid',
19 'foreign_table_field' => 'parenttable',
20 'maxitems' => 10,
21 'appearance' => array(
22 'showSynchronizationLink' => 1,
23 'showAllLocalizationLink' => 1,
24 'showPossibleLocalizationRecords' => 1,
25 'showRemovedLocalizationRecords' => 1,
26 ),
27 'behaviour' => array(
28 'localizationMode' => 'select',
29 'localizeChildrenAtParentLocalization' => true,
30 ),
31 )
32 ),
33 'tx_irretutorial_1ncsv_hotels' => array(
34 'exclude' => true,
35 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tt_content.tx_irretutorial_1ncsv_hotels',
36 'config' => array(
37 'type' => 'inline',
38 'foreign_table' => 'tx_irretutorial_1ncsv_hotel',
39 'maxitems' => 10,
40 'appearance' => array(
41 'showSynchronizationLink' => 1,
42 'showAllLocalizationLink' => 1,
43 'showPossibleLocalizationRecords' => 1,
44 'showRemovedLocalizationRecords' => 1,
45 ),
46 'behaviour' => array(
47 'localizationMode' => 'select',
48 'localizeChildrenAtParentLocalization' => true,
49 ),
50 'default' => '',
51 )
52 ),
53 'tx_irretutorial_flexform' => array(
54 'exclude' => true,
55 'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tt_content.tx_irretutorial_flexform',
56 'config' => array(
57 'type' => 'flex',
58 'ds' => array(
59 'default' => 'FILE:EXT:irre_tutorial/Configuration/FlexForms/tt_content_flexform.xml',
60 ),
61 'default' => '',
62 )
63 ),
64 )
65 );
66
67 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
68 'tt_content',
69 '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tt_content.div.irre, tx_irretutorial_1nff_hotels, tx_irretutorial_1ncsv_hotels, tx_irretutorial_flexform'
70 );