TYPO3 CMS  TYPO3_8-7
tx_blogexample_domain_model_info.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_info',
6  'label' => 'name',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'versioningWS' => true,
10  'languageField' => 'sys_language_uid',
11  'transOrigPointerField' => 'l18n_parent',
12  'transOrigDiffSourceField' => 'l18n_diffsource',
13  'delete' => 'deleted',
14  'sortby' => 'sorting',
15  'enablecolumns' => [
16  'disabled' => 'hidden'
17  ],
18  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_tag.gif'
19  ],
20  'interface' => [
21  'showRecordFieldList' => 'hidden, name'
22  ],
23  'columns' => [
24  'sys_language_uid' => [
25  'exclude' => true,
26  'label' => 'LLL:ext:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
27  'config' => [
28  'type' => 'select',
29  'renderType' => 'selectSingle',
30  'special' => 'languages',
31  'items' => [
32  [
33  'LLL:ext:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
34  -1,
35  'flags-multiple'
36  ],
37  ],
38  'default' => 0,
39  ]
40  ],
41  'l18n_parent' => [
42  'exclude' => true,
43  'displayCond' => 'FIELD:sys_language_uid:>:0',
44  'label' => 'LLL:ext:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
45  'config' => [
46  'type' => 'select',
47  'renderType' => 'selectSingle',
48  'items' => [
49  ['', 0],
50  ],
51  'foreign_table' => 'tx_blogexample_domain_model_info',
52  'foreign_table_where' => 'AND tx_blogexample_domain_model_info.pid=###CURRENT_PID### AND tx_blogexample_domain_model_info.sys_language_uid IN (-1,0)',
53  'default' => 0
54  ]
55  ],
56  'l18n_diffsource' => [
57  'config' => [
58  'type' => 'passthrough',
59  'default' => '',
60  ],
61  ],
62  'hidden' => [
63  'exclude' => true,
64  'label' => 'LLL:ext:lang/Resources/Private/Language/locallang_general.xlf:LGL.visible',
65  'config' => [
66  'type' => 'check',
67  'renderType' => 'checkboxToggle',
68  'items' => [
69  [
70  0 => '',
71  1 => '',
72  'invertStateDisplay' => true
73  ]
74  ],
75  ]
76  ],
77  'name' => [
78  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_info.name',
79  'config' => [
80  'type' => 'input',
81  'size' => 20,
82  'eval' => 'trim, required',
83  'max' => 256
84  ]
85  ],
86  'post' => [
87  'config' => [
88  'type' => 'passthrough',
89  ]
90  ],
91  ],
92  'types' => [
93  0 => ['showitem' => 'sys_language_uid, l18n_parent, hidden, name']
94  ],
95 ];