‪TYPO3CMS  10.4
tx_irretutorial_mnsym_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_mnsym_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_mnsym_hotel',
48  'foreign_table_where' => 'AND tx_irretutorial_mnsym_hotel.pid=###CURRENT_PID### AND tx_irretutorial_mnsym_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  'branches' => [
77  'exclude' => true,
78  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.branches',
79  'config' => [
80  'type' => 'inline',
81  'foreign_table' => 'tx_irretutorial_mnsym_hotel_rel',
82  'foreign_field' => 'hotelid',
83  'foreign_sortby' => 'hotelsort',
84  'foreign_label' => 'branchid',
85  'symmetric_field' => 'branchid',
86  'symmetric_sortby' => 'branchsort',
87  'symmetric_label' => 'hotelid',
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, branches,' .
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 ];