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