‪TYPO3CMS  10.4
tx_irretutorial_mnasym_hotel_offer_rel.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_mnasym_hotel_offer_rel',
6  'label' => 'uid',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'cruser_id' => 'cruser_id',
10  'languageField' => 'sys_language_uid',
11  'transOrigPointerField' => 'l18n_parent',
12  'transOrigDiffSourceField' => 'l18n_diffsource',
13  'translationSource' => 'l10n_source',
14  'delete' => 'deleted',
15  'enablecolumns' => [
16  'disabled' => 'hidden',
17  ],
18  'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel_offer_rel.gif',
19  'versioningWS' => true,
20  'origUid' => 't3_origuid',
21  // @see https://forge.typo3.org/issues/29278 which solves it implicitly in the Core
22  // 'shadowColumnsForNewPlaceholders' => 'hotelid,offerid',
23  ],
24  'columns' => [
25  'sys_language_uid' => [
26  'exclude' => true,
27  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
28  'config' => [
29  'type' => 'select',
30  'renderType' => 'selectSingle',
31  'foreign_table' => 'sys_language',
32  'items' => [
33  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
34  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
35  ],
36  'default' => 0
37  ]
38  ],
39  'l18n_parent' => [
40  'displayCond' => 'FIELD:sys_language_uid:>:0',
41  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
42  'config' => [
43  'type' => 'select',
44  'renderType' => 'selectSingle',
45  'items' => [
46  ['', 0],
47  ],
48  'foreign_table' => 'tx_irretutorial_mnasym_hotel_offer_rel',
49  'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel_offer_rel.sys_language_uid IN (-1,0)',
50  'default' => 0,
51  ]
52  ],
53  'l18n_diffsource' => [
54  'config' => [
55  'type' => 'passthrough',
56  'default' => ''
57  ]
58  ],
59  'hidden' => [
60  'exclude' => true,
61  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
62  'config' => [
63  'type' => 'check',
64  'default' => 0
65  ]
66  ],
67  'hotelid' => [
68  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
69  'config' => [
70  'type' => 'select',
71  'renderType' => 'selectSingle',
72  'foreign_table' => 'tx_irretutorial_mnasym_hotel',
73  'foreign_table_where' => 'AND tx_irretutorial_mnasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_hotel.sys_language_uid="###REC_FIELD_sys_language_uid###"',
74  'maxitems' => 1,
75  'default' => 0,
76  ]
77  ],
78  'offerid' => [
79  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
80  'config' => [
81  'type' => 'select',
82  'renderType' => 'selectSingle',
83  'foreign_table' => 'tx_irretutorial_mnasym_offer',
84  'foreign_table_where' => 'AND tx_irretutorial_mnasym_offer.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_offer.sys_language_uid="###REC_FIELD_sys_language_uid###"',
85  'maxitems' => 1,
86  'default' => 0,
87  ]
88  ],
89  'prices' => [
90  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.prices',
91  'config' => [
92  'type' => 'inline',
93  'foreign_table' => 'tx_irretutorial_mnasym_price',
94  'foreign_field' => 'parentid',
95  'maxitems' => 10,
96  'appearance' => [
97  'showSynchronizationLink' => 1,
98  'showAllLocalizationLink' => 1,
99  'showPossibleLocalizationRecords' => 1,
100  'showRemovedLocalizationRecords' => 1,
101  ],
102  ]
103  ],
104  'hotelsort' => [
105  'config' => [
106  'type' => 'passthrough',
107  ]
108  ],
109  'offersort' => [
110  'config' => [
111  'type' => 'passthrough',
112  ]
113  ],
114  ],
115  'types' => [
116  '0' => ['showitem' =>
117  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, prices,' .
118  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden, hotelsort, offersort'
119  ]
120  ],
121  'palettes' => [
122  '1' => ['showitem' => '']
123  ]
124 ];