‪TYPO3CMS  10.4
tx_irretutorial_mnattr_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_mnattr_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_mnattr_hotel_offer_rel',
49  'foreign_table_where' => 'AND tx_irretutorial_mnattr_hotel_offer_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnattr_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_mnattr_hotel',
73  'maxitems' => 1,
74  'default' => 0,
75  ]
76  ],
77  'offerid' => [
78  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
79  'config' => [
80  'type' => 'select',
81  'renderType' => 'selectSingle',
82  'foreign_table' => 'tx_irretutorial_mnattr_offer',
83  'maxitems' => 1,
84  'default' => 0,
85  ]
86  ],
87  'hotelsort' => [
88  'config' => [
89  'type' => 'passthrough',
90  ]
91  ],
92  'offersort' => [
93  'config' => [
94  'type' => 'passthrough',
95  ]
96  ],
97  'quality' => [
98  'exclude' => true,
99  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality',
100  'config' => [
101  'type' => 'select',
102  'renderType' => 'selectSingle',
103  'items' => [
104  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.0', '1'],
105  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.1', '2'],
106  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.2', '3'],
107  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.3', '4'],
108  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.4', '5'],
109  ],
110  ]
111  ],
112  'allincl' => [
113  'exclude' => true,
114  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.allincl',
115  'config' => [
116  'type' => 'check',
117  ]
118  ],
119  ],
120  'types' => [
121  '0' => ['showitem' =>
122  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, hotelsort, offersort, quality, allincl,' .
123  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
124  ]
125  ],
126  'palettes' => [
127  '1' => ['showitem' => '']
128  ]
129 ];