‪TYPO3CMS  10.4
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  'columns' => [
21  'sys_language_uid' => [
22  'exclude' => true,
23  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
24  'config' => [
25  'type' => 'select',
26  'renderType' => 'selectSingle',
27  'special' => 'languages',
28  'items' => [
29  [
30  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
31  -1,
32  'flags-multiple'
33  ],
34  ],
35  'default' => 0,
36  ]
37  ],
38  'l18n_parent' => [
39  'displayCond' => 'FIELD:sys_language_uid:>:0',
40  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
41  'config' => [
42  'type' => 'select',
43  'renderType' => 'selectSingle',
44  'items' => [
45  ['', 0],
46  ],
47  'foreign_table' => 'tx_blogexample_domain_model_info',
48  'foreign_table_where' => 'AND tx_blogexample_domain_model_info.pid=###CURRENT_PID### AND tx_blogexample_domain_model_info.sys_language_uid IN (-1,0)',
49  'default' => 0
50  ]
51  ],
52  'l18n_diffsource' => [
53  'config' => [
54  'type' => 'passthrough',
55  'default' => '',
56  ],
57  ],
58  'hidden' => [
59  'exclude' => true,
60  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
61  'config' => [
62  'type' => 'check',
63  'renderType' => 'checkboxToggle',
64  'items' => [
65  [
66  0 => '',
67  1 => '',
68  'invertStateDisplay' => true
69  ]
70  ],
71  ]
72  ],
73  'name' => [
74  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_info.name',
75  'config' => [
76  'type' => 'input',
77  'size' => 20,
78  'eval' => 'trim, required',
79  'max' => 256
80  ]
81  ],
82  'post' => [
83  'config' => [
84  'type' => 'passthrough',
85  ]
86  ],
87  ],
88  'types' => [
89  0 => ['showitem' => 'sys_language_uid, l18n_parent, hidden, name']
90  ],
91 ];