TYPO3 CMS  TYPO3_7-6
tx_irretutorial_1nff_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_1nff_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,parenttable',
22  'shadowColumnsForMovePlaceholders' => 'parentid,parenttable,parentidentifier',
23  ],
24  'interface' => [
25  'showRecordFieldList' => 'sys_language_uid,l18n_parent,l18n_diffsource,hidden,parentid,title,price'
26  ],
27  'columns' => [
28  'sys_language_uid' => [
29  'exclude' => 1,
30  'label' => 'LLL:EXT:lang/locallang_general.xml: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:lang/locallang_general.xml:LGL.allLanguages', -1],
38  ['LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0]
39  ],
40  'default' => 0
41  ]
42  ],
43  'l18n_parent' => [
44  'displayCond' => 'FIELD:sys_language_uid:>:0',
45  'exclude' => 1,
46  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
47  'config' => [
48  'type' => 'select',
49  'renderType' => 'selectSingle',
50  'items' => [
51  ['', 0],
52  ],
53  'foreign_table' => 'tx_irretutorial_1nff_price',
54  'foreign_table_where' => 'AND tx_irretutorial_1nff_price.pid=###CURRENT_PID### AND tx_irretutorial_1nff_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' => 1,
66  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
67  'config' => [
68  'type' => 'check',
69  'default' => '0'
70  ]
71  ],
72  'parentid' => [
73  'config' => [
74  'type' => 'passthrough',
75  'default' => 0
76  ]
77  ],
78  'parenttable' => [
79  'config' => [
80  'type' => 'passthrough',
81  'default' => ''
82  ]
83  ],
84  'parentidentifier' => [
85  'config' => [
86  'type' => 'passthrough',
87  'default' => ''
88  ]
89  ],
90  'title' => [
91  'exclude' => 1,
92  'l10n_mode' => 'prefixLangTitle',
93  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.title',
94  'config' => [
95  'type' => 'input',
96  'size' => '30',
97  'eval' => 'required',
98  ]
99  ],
100  'price' => [
101  'exclude' => 1,
102  'label' => 'LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tx_irretutorial_price.price',
103  'config' => [
104  'type' => 'input',
105  'size' => '30',
106  'eval' => 'double2',
107  ]
108  ],
109  ],
110  'types' => [
111  '0' => ['showitem' =>
112  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.general, title, price,' .
113  '--div--;LLL:EXT:irre_tutorial/Resources/Private/Language/locallang_db.xml:tabs.visibility, sys_language_uid, l18n_parent, l18n_diffsource, hidden;;1, parentid'
114  ]
115  ],
116  'palettes' => [
117  '1' => ['showitem' => '']
118  ]
119 ];