TYPO3 CMS  TYPO3_7-6
tx_irretutorial_mnattr_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_mnattr_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  'delete' => 'deleted',
13  'enablecolumns' => [
14  'disabled' => 'hidden',
15  ],
16  'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel_offer_rel.gif',
17  'versioningWS' => true,
18  'origUid' => 't3_origuid',
19  // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
20  // 'shadowColumnsForNewPlaceholders' => 'hotelid,offerid',
21  ],
22  'interface' => [
23  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,hotelid,offerid,hotelsort,offersort,quality,allincl'
24  ],
25  'columns' => [
26  'sys_language_uid' => [
27  'exclude' => 1,
28  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
29  'config' => [
30  'type' => 'select',
31  'renderType' => 'selectSingle',
32  'foreign_table' => 'sys_language',
33  'foreign_table_where' => 'ORDER BY sys_language.title',
34  'items' => [
35  ['LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1],
36  ['LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0]
37  ],
38  'default' => 0
39  ]
40  ],
41  'l18n_parent' => [
42  'displayCond' => 'FIELD:sys_language_uid:>:0',
43  'exclude' => 1,
44  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
45  'config' => [
46  'type' => 'select',
47  'renderType' => 'selectSingle',
48  'items' => [
49  ['', 0],
50  ],
51  'foreign_table' => 'tx_irretutorial_mnattr_hotel_offer_rel',
52  '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)',
53  'default' => 0,
54  ]
55  ],
56  'l18n_diffsource' => [
57  'config' => [
58  'type' => 'passthrough',
59  'default' => ''
60  ]
61  ],
62  'hidden' => [
63  'exclude' => 1,
64  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
65  'config' => [
66  'type' => 'check',
67  'default' => '0'
68  ]
69  ],
70  'hotelid' => [
71  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.hotelid',
72  'config' => [
73  'type' => 'select',
74  'renderType' => 'selectSingle',
75  'foreign_table' => 'tx_irretutorial_mnattr_hotel',
76  'maxitems' => 1,
77  'localizeReferences' => 1,
78  'default' => 0,
79  ]
80  ],
81  'offerid' => [
82  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.offerid',
83  'config' => [
84  'type' => 'select',
85  'renderType' => 'selectSingle',
86  'foreign_table' => 'tx_irretutorial_mnattr_offer',
87  'maxitems' => 1,
88  'localizeReferences' => 1,
89  'default' => 0,
90  ]
91  ],
92  'hotelsort' => [
93  'config' => [
94  'type' => 'passthrough',
95  ]
96  ],
97  'offersort' => [
98  'config' => [
99  'type' => 'passthrough',
100  ]
101  ],
102  'quality' => [
103  'exclude' => 1,
104  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality',
105  'config' => [
106  'type' => 'select',
107  'renderType' => 'selectSingle',
108  'items' => [
109  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.0', '1'],
110  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.1', '2'],
111  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.2', '3'],
112  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.3', '4'],
113  ['LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.quality.I.4', '5'],
114  ],
115  ]
116  ],
117  'allincl' => [
118  'exclude' => 1,
119  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_offer_rel.allincl',
120  'config' => [
121  'type' => 'check',
122  ]
123  ],
124  ],
125  'types' => [
126  '0' => ['showitem' =>
127  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, offerid, hotelsort, offersort, quality, allincl,' .
128  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1'
129  ]
130  ],
131  'palettes' => [
132  '1' => ['showitem' => '']
133  ]
134 ];