‪TYPO3CMS  10.4
tx_irretutorial_mnasym_price.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_mnasym_price',
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_price.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',
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_mnasym_price',
50  'foreign_table_where' => 'AND tx_irretutorial_mnasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_price.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  'parentid' => [
69  'config' => [
70  'type' => 'passthrough',
71  ]
72  ],
73  'title' => [
74  'exclude' => true,
75  'l10n_mode' => 'prefixLangTitle',
76  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
77  'config' => [
78  'type' => 'input',
79  'size' => 30,
80  'eval' => 'required',
81  ]
82  ],
83  'price' => [
84  'exclude' => true,
85  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
86  'config' => [
87  'type' => 'input',
88  'size' => 30,
89  'eval' => 'double2',
90  ]
91  ],
92  ],
93  'types' => [
94  '0' => ['showitem' =>
95  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, parentid, price,' .
96  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden, parentid'
97  ]
98  ],
99  'palettes' => [
100  '1' => ['showitem' => '']
101  ]
102 ];