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