c0611eae7cd783aeac3a7635c05ad1767e67d123
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / tx_blogexample_domain_model_blog.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'versioningWS' => true,
9 'origUid' => 't3_origuid',
10 'languageField' => 'sys_language_uid',
11 'transOrigPointerField' => 'l18n_parent',
12 'transOrigDiffSourceField' => 'l18n_diffsource',
13 'delete' => 'deleted',
14 'enablecolumns' => [
15 'disabled' => 'hidden',
16 'fe_group' => 'fe_group',
17 ],
18 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_blog.gif'
19 ],
20 'interface' => [
21 'showRecordFieldList' => 'title, posts, administrator'
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 'foreign_table' => 'sys_language',
31 'foreign_table_where' => 'ORDER BY sys_language.title',
32 'items' => [
33 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
34 ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
35 ],
36 'default' => 0
37 ]
38 ],
39 'l18n_parent' => [
40 'displayCond' => 'FIELD:sys_language_uid:>:0',
41 'exclude' => true,
42 'label' => 'LLL:EXT:lang/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_blog',
50 '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)',
51 ]
52 ],
53 'l18n_diffsource' => [
54 'config'=>[
55 'type' => 'passthrough',
56 'default' => ''
57 ]
58 ],
59 't3ver_label' => [
60 'displayCond' => 'FIELD:t3ver_label:REQ:true',
61 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
62 'config' => [
63 'type'=>'none',
64 'cols' => 27
65 ]
66 ],
67 'hidden' => [
68 'exclude' => true,
69 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden',
70 'config' => [
71 'type' => 'check'
72 ]
73 ],
74 'fe_group' => [
75 'exclude' => true,
76 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
77 'config' => [
78 'type' => 'select',
79 'renderType' => 'selectMultipleSideBySide',
80 'size' => 5,
81 'maxitems' => 20,
82 'items' => [
83 [
84 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login',
85 -1,
86 ],
87 [
88 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.any_login',
89 -2,
90 ],
91 [
92 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.usergroups',
93 '--div--',
94 ],
95 ],
96 'exclusiveKeys' => '-1,-2',
97 'foreign_table' => 'fe_groups',
98 'foreign_table_where' => 'ORDER BY fe_groups.title',
99 ],
100 ],
101 'title' => [
102 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
103 'config' => [
104 'type' => 'input',
105 'size' => 20,
106 'eval' => 'trim,required',
107 'max' => 256
108 ]
109 ],
110 'description' => [
111 'exclude' => true,
112 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
113 'config' => [
114 'type' => 'text',
115 'eval' => 'required',
116 'rows' => 30,
117 'cols' => 80,
118 ]
119 ],
120 'logo' => [
121 'exclude' => true,
122 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
123 'config' => [
124 'type' => 'group',
125 'internal_type' => 'file',
126 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
127 'max_size' => 3000,
128 'uploadfolder' => 'uploads/pics',
129 'size' => 1,
130 'maxitems' => 1,
131 'minitems' => 0
132 ]
133 ],
134 'posts' => [
135 'exclude' => true,
136 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
137 'config' => [
138 'type' => 'inline',
139 'foreign_table' => 'tx_blogexample_domain_model_post',
140 'foreign_field' => 'blog',
141 'foreign_sortby' => 'sorting',
142 'appearance' => [
143 'collapseAll' => 1,
144 'expandSingle' => 1,
145 ],
146 ]
147 ],
148 'administrator' => [
149 'exclude' => true,
150 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
151 'config' => [
152 'type' => 'select',
153 'renderType' => 'selectSingle',
154 'foreign_table' => 'fe_users',
155 'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
156 'items' => [
157 ['--none--', 0],
158 ],
159 'fieldControl' => [
160 'editPopup' => [
161 'disabled' => false,
162 ],
163 'addRecord' => [
164 'disabled' => false,
165 'options' => [
166 'setValue' => 'prepend',
167 ],
168 ],
169 ],
170 ],
171 ],
172 ],
173 'types' => [
174 '1' => ['showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator']
175 ],
176 'palettes' => [
177 '1' => ['showitem' => '']
178 ]
179 ];