‪TYPO3CMS  10.4
tx_irretutorial_1ncsv_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_1ncsv_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  'shadowColumnsForNewPlaceholders' => 'offers',
23  'shadowColumnsForMovePlaceholders' => '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  'items' => [
34  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
35  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
36  ],
37  'default' => 0,
38  ]
39  ],
40  'l18n_parent' => [
41  'displayCond' => 'FIELD:sys_language_uid:>:0',
42  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
43  'config' => [
44  'type' => 'select',
45  'renderType' => 'selectSingle',
46  'items' => [
47  ['', 0],
48  ],
49  'foreign_table' => 'tx_irretutorial_1ncsv_hotel',
50  'foreign_table_where' => 'AND tx_irretutorial_1ncsv_hotel.pid=###CURRENT_PID### AND tx_irretutorial_1ncsv_hotel.sys_language_uid IN (-1,0)',
51  'default' => 0
52  ]
53  ],
54  'l18n_diffsource' => [
55  'config' => [
56  'type' => 'passthrough',
57  'default' => ''
58  ]
59  ],
60  'hidden' => [
61  'exclude' => true,
62  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
63  'config' => [
64  'type' => 'check',
65  'default' => 0
66  ]
67  ],
68  'title' => [
69  'exclude' => true,
70  'l10n_mode' => 'prefixLangTitle',
71  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.title',
72  'config' => [
73  'type' => 'input',
74  'size' => 30,
75  'eval' => 'required',
76  ]
77  ],
78  'offers' => [
79  'exclude' => true,
80  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_hotel.offers',
81  'config' => [
82  'type' => 'inline',
83  'foreign_table' => 'tx_irretutorial_1ncsv_offer',
84  'maxitems' => 10,
85  'appearance' => [
86  'showSynchronizationLink' => 1,
87  'showAllLocalizationLink' => 1,
88  'showPossibleLocalizationRecords' => 1,
89  'showRemovedLocalizationRecords' => 1,
90  ],
91  'default' => ''
92  ]
93  ],
94  ],
95  'types' => [
96  '0' => ['showitem' =>
97  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, offers, ' .
98  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden'
99  ]
100  ],
101  'palettes' => [
102  '1' => ['showitem' => '']
103  ]
104 ];