‪TYPO3CMS  10.4
tx_blogexample_domain_model_blog.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_blog',
6  'label' => 'title',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'versioningWS' => true,
10  'origUid' => 't3_origuid',
11  'languageField' => 'sys_language_uid',
12  'transOrigPointerField' => 'l18n_parent',
13  'transOrigDiffSourceField' => 'l18n_diffsource',
14  'delete' => 'deleted',
15  'enablecolumns' => [
16  'disabled' => 'hidden',
17  'fe_group' => 'fe_group',
18  ],
19  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif'
20  ],
21  'columns' => [
22  'sys_language_uid' => [
23  'exclude' => true,
24  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
25  'config' => [
26  'type' => 'select',
27  'renderType' => 'selectSingle',
28  'special' => 'languages',
29  'items' => [
30  [
31  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
32  -1,
33  'flags-multiple'
34  ],
35  ],
36  'default' => 0
37  ]
38  ],
39  'l18n_parent' => [
40  'displayCond' => 'FIELD:sys_language_uid:>:0',
41  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
42  'config' => [
43  'type' => 'select',
44  'renderType' => 'selectSingle',
45  'items' => [
46  ['', 0],
47  ],
48  'foreign_table' => 'tx_blogexample_domain_model_blog',
49  'foreign_table_where' => 'AND tx_blogexample_domain_model_blog.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_blog.sys_language_uid IN (-1,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.hidden',
61  'config' => [
62  'type' => 'check'
63  ]
64  ],
65  'fe_group' => [
66  'exclude' => true,
67  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
68  'config' => [
69  'type' => 'select',
70  'renderType' => 'selectMultipleSideBySide',
71  'size' => 5,
72  'maxitems' => 20,
73  'items' => [
74  [
75  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
76  -1,
77  ],
78  [
79  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
80  -2,
81  ],
82  [
83  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
84  '--div--',
85  ],
86  ],
87  'exclusiveKeys' => '-1,-2',
88  'foreign_table' => 'fe_groups',
89  ],
90  ],
91  'title' => [
92  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
93  'config' => [
94  'type' => 'input',
95  'size' => 20,
96  'eval' => 'trim,required',
97  'max' => 256
98  ]
99  ],
100  'subtitle' => [
101  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.subtitle',
102  'config' => [
103  'type' => 'input',
104  'size' => 20,
105  'eval' => 'trim',
106  'max' => 256
107  ]
108  ],
109  'description' => [
110  'exclude' => true,
111  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
112  'config' => [
113  'type' => 'text',
114  'eval' => 'required',
115  'rows' => 30,
116  'cols' => 80,
117  ]
118  ],
119  'logo' => [
120  'exclude' => true,
121  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
123  ],
124  'posts' => [
125  'exclude' => true,
126  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
127  'config' => [
128  'type' => 'inline',
129  'foreign_table' => 'tx_blogexample_domain_model_post',
130  'foreign_field' => 'blog',
131  'foreign_sortby' => 'sorting',
132  'appearance' => [
133  'collapseAll' => 1,
134  'expandSingle' => 1,
135  ],
136  ]
137  ],
138  'administrator' => [
139  'exclude' => true,
140  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
141  'config' => [
142  'type' => 'select',
143  'renderType' => 'selectSingle',
144  'foreign_table' => 'fe_users',
145  'foreign_table_where' => "AND fe_users.tx_extbase_type='ExtbaseTeam\\\\BlogExample\\\\Domain\\\\Model\\\\Administrator'",
146  'items' => [
147  ['--none--', 0],
148  ],
149  'fieldControl' => [
150  'editPopup' => [
151  'disabled' => false,
152  ],
153  'addRecord' => [
154  'disabled' => false,
155  'options' => [
156  'setValue' => 'prepend',
157  ],
158  ],
159  ],
160  ],
161  ],
162  ],
163  'types' => [
164  '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
165  ],
166  'palettes' => [
167  '1' => ['showitem' => '']
168  ]
169 ];
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getFileFieldTCAConfig
‪static array getFileFieldTCAConfig($fieldName, array $customSettingOverride=[], $allowedFileExtensions='', $disallowedFileExtensions='')
Definition: ExtensionManagementUtility.php:550