TYPO3 CMS  TYPO3_7-6
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  'sortby' => 'sorting',
13  'delete' => 'deleted',
14  'enablecolumns' => [
15  'disabled' => 'hidden',
16  ],
17  'iconfile' => 'EXT:irre_tutorial/Resources/Public/Icons/icon_tx_irretutorial_price.gif',
18  'versioningWS' => true,
19  'origUid' => 't3_origuid',
20  // @see http://forge.typo3.org/issues/29278 which solves it implicitly in the Core
21  // 'shadowColumnsForNewPlaceholders' => 'parentid',
22  ],
23  'interface' => [
24  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,title,parentid,price'
25  ],
26  'columns' => [
27  'sys_language_uid' => [
28  'exclude' => 1,
29  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
30  'config' => [
31  'type' => 'select',
32  'renderType' => 'selectSingle',
33  'foreign_table' => 'sys_language',
34  'foreign_table_where' => 'ORDER BY sys_language.title',
35  'items' => [
36  ['LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1],
37  ['LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0]
38  ],
39  'default' => 0
40  ]
41  ],
42  'l18n_parent' => [
43  'displayCond' => 'FIELD:sys_language_uid:>:0',
44  'exclude' => 1,
45  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
46  'config' => [
47  'type' => 'select',
48  'renderType' => 'selectSingle',
49  'items' => [
50  ['', 0],
51  ],
52  'foreign_table' => 'tx_irretutorial_mnasym_price',
53  'foreign_table_where' => 'AND tx_irretutorial_mnasym_price.pid=###CURRENT_PID### AND tx_irretutorial_mnasym_price.sys_language_uid IN (-1,0)',
54  'default' => 0,
55  ]
56  ],
57  'l18n_diffsource' => [
58  'config' => [
59  'type' => 'passthrough',
60  'default' => ''
61  ]
62  ],
63  'hidden' => [
64  'exclude' => 1,
65  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
66  'config' => [
67  'type' => 'check',
68  'default' => '0'
69  ]
70  ],
71  'parentid' => [
72  'config' => [
73  'type' => 'passthrough',
74  ]
75  ],
76  'title' => [
77  'exclude' => 1,
78  'l10n_mode' => 'prefixLangTitle',
79  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
80  'config' => [
81  'type' => 'input',
82  'size' => '30',
83  'eval' => 'required',
84  ]
85  ],
86  'price' => [
87  'exclude' => 1,
88  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
89  'config' => [
90  'type' => 'input',
91  'size' => '30',
92  'eval' => 'double2',
93  ]
94  ],
95  ],
96  'types' => [
97  '0' => ['showitem' =>
98  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, parentid, price,' .
99  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1, parentid'
100  ]
101  ],
102  'palettes' => [
103  '1' => ['showitem' => '']
104  ]
105 ];