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