‪TYPO3CMS  10.4
tx_blogexample_domain_model_person.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_person',
6  'label' => 'lastname',
7  'label_alt' => 'firstname',
8  'label_alt_force' => true,
9  'tstamp' => 'tstamp',
10  'crdate' => 'crdate',
11  'versioningWS' => true,
12  'origUid' => 't3_origuid',
13  'languageField' => 'sys_language_uid',
14  'transOrigPointerField' => 'l10n_parent',
15  'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
16  'delete' => 'deleted',
17  'enablecolumns' => [
18  'disabled' => 'hidden'
19  ],
20  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_person.gif'
21  ],
22  'columns' => [
23  'sys_language_uid' => [
24  'exclude' => true,
25  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
26  'config' => [
27  'type' => 'select',
28  'renderType' => 'selectSingle',
29  'special' => 'languages',
30  'items' => [
31  [
32  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
33  -1,
34  'flags-multiple'
35  ],
36  ],
37  'default' => 0
38  ]
39  ],
40  'l10n_parent' => [
41  'displayCond' => 'FIELD:sys_language_uid:>:0',
42  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
43  'config' => [
44  'type' => 'select',
45  'renderType' => 'selectSingle',
46  'items' => [
47  ['', 0],
48  ],
49  'foreign_table' => 'tx_blogexample_domain_model_person',
50  'foreign_table_where' => 'AND tx_blogexample_domain_model_person.pid=###CURRENT_PID### AND tx_blogexample_domain_model_person.sys_language_uid IN (-1,0)',
51  ]
52  ],
53  'hidden' => [
54  'exclude' => true,
55  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
56  'config' => [
57  'type' => 'check'
58  ]
59  ],
60  'firstname' => [
61  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.firstname',
62  'config' => [
63  'type' => 'input',
64  'size' => 20,
65  'eval' => 'trim,required',
66  'max' => 256
67  ]
68  ],
69  'lastname' => [
70  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.lastname',
71  'config' => [
72  'type' => 'input',
73  'size' => 20,
74  'eval' => 'trim,required',
75  'max' => 256
76  ]
77  ],
78  'email' => [
79  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.email',
80  'config' => [
81  'type' => 'input',
82  'size' => 20,
83  'eval' => 'trim, required',
84  'max' => 256
85  ]
86  ],
87  'tags' => [
88  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags',
89  'config' => [
90  'type' => 'inline',
91  'foreign_table' => 'tx_blogexample_domain_model_tag',
92  'MM' => 'tx_blogexample_domain_model_tag_mm',
93  'MM_match_fields' => [
94  'fieldname' => 'tags'
95  ],
96  'appearance' => [
97  'useCombination' => 1,
98  'useSortable' => 1,
99  'collapseAll' => 1,
100  'expandSingle' => 1,
101  ]
102  ]
103  ],
104  'tags_special' => [
105  'exclude' => true,
106  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags_special',
107  'config' => [
108  'type' => 'inline',
109  'foreign_table' => 'tx_blogexample_domain_model_tag',
110  'MM' => 'tx_blogexample_domain_model_tag_mm',
111  'MM_match_fields' => [
112  'fieldname' => 'tags_special'
113  ],
114  'appearance' => [
115  'useCombination' => 1,
116  'useSortable' => 1,
117  'collapseAll' => 1,
118  'expandSingle' => 1,
119  ]
120  ]
121  ],
122  ],
123  'types' => [
124  '1' => ['showitem' => 'sys_language_uid, firstname, lastname, email, avatar, tags, tags_special']
125  ],
126  'palettes' => [
127  '1' => ['showitem' => '']
128  ]
129 ];