‪TYPO3CMS  9.5
tx_irretutorial_1nff_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_1nff_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  // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
22  // 'shadowColumnsForNewPlaceholders' => 'parentid,parenttable',
23  'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
24  ],
25  'interface' => [
26  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,offers'
27  ],
28  'columns' => [
29  'sys_language_uid' => [
30  'exclude' => true,
31  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
32  'config' => [
33  'type' => 'select',
34  'renderType' => 'selectSingle',
35  'foreign_table' => 'sys_language',
36  'foreign_table_where' => 'ORDER BY sys_language.title',
37  'items' => [
38  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
39  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
40  ],
41  'default' => 0
42  ]
43  ],
44  'l18n_parent' => [
45  'displayCond' => 'FIELD:sys_language_uid:>:0',
46  'exclude' => true,
47  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
48  'config' => [
49  'type' => 'select',
50  'renderType' => 'selectSingle',
51  'items' => [
52  ['', 0],
53  ],
54  'foreign_table' => 'tx_irretutorial_1nff_hotel',
55  'foreign_table_where' => 'AND tx_irretutorial_1nff_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1nff_hotel.sys_language_uid IN (-1,0)',
56  'default' => 0,
57  ]
58  ],
59  'l18n_diffsource' => [
60  'config' => [
61  'type' => 'passthrough',
62  'default' => ''
63  ]
64  ],
65  'hidden' => [
66  'exclude' => true,
67  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
68  'config' => [
69  'type' => 'check',
70  'default' => 0
71  ]
72  ],
73  'parentid' => [
74  'config' => [
75  'type' => 'passthrough',
76  'default' => 0
77  ]
78  ],
79  'parenttable' => [
80  'config' => [
81  'type' => 'passthrough',
82  'default' => ''
83  ]
84  ],
85  'parentidentifier' => [
86  'config' => [
87  'type' => 'passthrough',
88  'default' => ''
89  ]
90  ],
91  'title' => [
92  'exclude' => true,
93  'l10n_mode' => 'prefixLangTitle',
94  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
95  'config' => [
96  'type' => 'input',
97  'size' => 30,
98  'eval' => 'required',
99  ]
100  ],
101  'offers' => [
102  'exclude' => true,
103  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
104  'config' => [
105  'type' => 'inline',
106  'foreign_table' => 'tx_irretutorial_1nff_offer',
107  'foreign_field' => 'parentid',
108  'foreign_table_field' => 'parenttable',
109  'maxitems' => 10,
110  'appearance' => [
111  'showSynchronizationLink' => 1,
112  'showAllLocalizationLink' => 1,
113  'showPossibleLocalizationRecords' => 1,
114  'showRemovedLocalizationRecords' => 1,
115  ],
116  ]
117  ],
118  ],
119  'types' => [
120  '0' => ['showitem' =>
121  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers,' .
122  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
123  ]
124  ],
125  'palettes' => [
126  '1' => ['showitem' => '']
127  ]
128 ];