‪TYPO3CMS  9.5
tx_irretutorial_mnasym_price.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_mnasym_price',
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_price.gif',
19  'versioningWS' => true,
20  'origUid' => 't3_origuid',
21  // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
22  // 'shadowColumnsForNewPlaceholders' => 'parentid',
23  ],
24  'interface' => [
25  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,parentid,price'
26  ],
27  'columns' => [
28  'sys_language_uid' => [
29  'exclude' => true,
30  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf: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:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
38  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf: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:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
47  'config' => [
48  'type' => 'select',
49  'renderType' => 'selectSingle',
50  'items' => [
51  ['', 0],
52  ],
53  'foreign_table' => 'tx_irretutorial_mnasym_price',
54  'foreign_table_where' => 'AND tx_irretutorial_mnasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_price.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:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
67  'config' => [
68  'type' => 'check',
69  'default' => 0
70  ]
71  ],
72  'parentid' => [
73  'config' => [
74  'type' => 'passthrough',
75  ]
76  ],
77  'title' => [
78  'exclude' => true,
79  'l10n_mode' => 'prefixLangTitle',
80  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
81  'config' => [
82  'type' => 'input',
83  'size' => 30,
84  'eval' => 'required',
85  ]
86  ],
87  'price' => [
88  'exclude' => true,
89  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
90  'config' => [
91  'type' => 'input',
92  'size' => 30,
93  'eval' => 'double2',
94  ]
95  ],
96  ],
97  'types' => [
98  '0' => ['showitem' =>
99  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, parentid, price,' .
100  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden, parentid'
101  ]
102  ],
103  'palettes' => [
104  '1' => ['showitem' => '']
105  ]
106 ];