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