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