‪TYPO3CMS  10.4
tx_irretutorial_mnmmasym_hotel.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_mnmmasym_hotel',
6  'label' => 'title',
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  'sortby' => 'sorting',
15  'delete' => 'deleted',
16  'enablecolumns' => [
17  'disabled' => 'hidden',
18  ],
19  'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_hotel.gif',
20  'versioningWS' => true,
21  'origUid' => 't3_origuid',
22  ],
23  'columns' => [
24  'sys_language_uid' => [
25  'exclude' => true,
26  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
27  'config' => [
28  'type' => 'select',
29  'renderType' => 'selectSingle',
30  'foreign_table' => 'sys_language',
31  'items' => [
32  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
33  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
34  ],
35  'default' => 0
36  ]
37  ],
38  'l18n_parent' => [
39  'displayCond' => 'FIELD:sys_language_uid:>:0',
40  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
41  'config' => [
42  'type' => 'select',
43  'renderType' => 'selectSingle',
44  'items' => [
45  ['', 0],
46  ],
47  'foreign_table' => 'tx_irretutorial_mnmmasym_hotel',
48  'foreign_table_where' => 'AND tx_irretutorial_mnmmasym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnmmasym_hotel.sys_language_uid IN (-1,0)',
49  'default' => 0,
50  ]
51  ],
52  'l18n_diffsource' => [
53  'config' => [
54  'type' => 'passthrough',
55  'default' => ''
56  ]
57  ],
58  'hidden' => [
59  'exclude' => true,
60  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
61  'config' => [
62  'type' => 'check',
63  'default' => 0
64  ]
65  ],
66  'title' => [
67  'exclude' => true,
68  'l10n_mode' => 'prefixLangTitle',
69  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
70  'config' => [
71  'type' => 'input',
72  'size' => 30,
73  'eval' => 'required',
74  ]
75  ],
76  'offers' => [
77  'exclude' => true,
78  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
79  'config' => [
80  'type' => 'inline',
81  'foreign_table' => 'tx_irretutorial_mnmmasym_offer',
82  'MM' => 'tx_irretutorial_mnmmasym_hotel_offer_rel',
83  'MM_hasUidField' => true,
84  'maxitems' => 10,
85  'appearance' => [
86  'showSynchronizationLink' => 1,
87  'showAllLocalizationLink' => 1,
88  'showPossibleLocalizationRecords' => 1,
89  'showRemovedLocalizationRecords' => 1,
90  ],
91  ]
92  ],
93  ],
94  'types' => [
95  '0' => ['showitem' =>
96  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers,' .
97  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
98  ]
99  ],
100  'palettes' => [
101  '1' => ['showitem' => '']
102  ]
103 ];