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