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