‪TYPO3CMS  10.4
tx_irretutorial_mnsym_hotel_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_mnsym_hotel_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_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',
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_mnsym_hotel_rel',
49  'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel_rel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_hotel_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_rel.hotelid',
69  'config' => [
70  'type' => 'select',
71  'renderType' => 'selectSingle',
72  'foreign_table' => 'tx_irretutorial_mnsym_hotel',
73  'maxitems' => 1,
74  'default' => 0,
75  ]
76  ],
77  'branchid' => [
78  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel_rel.branchid',
79  'config' => [
80  'type' => 'select',
81  'renderType' => 'selectSingle',
82  'foreign_table' => 'tx_irretutorial_mnsym_hotel',
83  'maxitems' => 1,
84  'default' => 0,
85  ]
86  ],
87  'hotelsort' => [
88  'config' => [
89  'type' => 'passthrough',
90  ]
91  ],
92  'branchsort' => [
93  'config' => [
94  'type' => 'passthrough',
95  ]
96  ],
97  ],
98  'types' => [
99  '0' => ['showitem' =>
100  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, hotelid, branchid,' .
101  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden, hotelsort, branchsort'
102  ]
103  ],
104  'palettes' => [
105  '1' => ['showitem' => '']
106  ]
107 ];