[TASK] Cleanup TCA
[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 array(
3 'ctrl' => array(
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 'versioning_followPages' => true,
10 'origUid' => 't3_origuid',
11 'languageField' => 'sys_language_uid',
12 'transOrigPointerField' => 'l18n_parent',
13 'transOrigDiffSourceField' => 'l18n_diffsource',
14 'delete' => 'deleted',
15 'enablecolumns' => array(
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 'interface' => array(
22 'showRecordFieldList' => 'title, posts, administrator'
23 ),
24 'columns' => array(
25 'sys_language_uid' => array(
26 'exclude' => true,
27 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
28 'config' => array(
29 'type' => 'select',
30 'renderType' => 'selectSingle',
31 'foreign_table' => 'sys_language',
32 'foreign_table_where' => 'ORDER BY sys_language.title',
33 'items' => array(
34 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
35 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
36 ),
37 'default' => 0
38 )
39 ),
40 'l18n_parent' => array(
41 'displayCond' => 'FIELD:sys_language_uid:>:0',
42 'exclude' => true,
43 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
44 'config' => array(
45 'type' => 'select',
46 'renderType' => 'selectSingle',
47 'items' => array(
48 array('', 0),
49 ),
50 'foreign_table' => 'tx_blogexample_domain_model_blog',
51 '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)',
52 )
53 ),
54 'l18n_diffsource' => array(
55 'config'=>array(
56 'type' => 'passthrough',
57 'default' => ''
58 )
59 ),
60 't3ver_label' => array(
61 'displayCond' => 'FIELD:t3ver_label:REQ:true',
62 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
63 'config' => array(
64 'type'=>'none',
65 'cols' => 27
66 )
67 ),
68 'hidden' => array(
69 'exclude' => true,
70 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
71 'config' => array(
72 'type' => 'check'
73 )
74 ),
75 'fe_group' => array(
76 'exclude' => true,
77 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.fe_group',
78 'config' => array(
79 'type' => 'select',
80 'renderType' => 'selectMultipleSideBySide',
81 'size' => 5,
82 'maxitems' => 20,
83 'items' => array(
84 array(
85 'LLL:EXT:lang/locallang_general.xlf:LGL.hide_at_login',
86 -1,
87 ),
88 array(
89 'LLL:EXT:lang/locallang_general.xlf:LGL.any_login',
90 -2,
91 ),
92 array(
93 'LLL:EXT:lang/locallang_general.xlf:LGL.usergroups',
94 '--div--',
95 ),
96 ),
97 'exclusiveKeys' => '-1,-2',
98 'foreign_table' => 'fe_groups',
99 'foreign_table_where' => 'ORDER BY fe_groups.title',
100 ),
101 ),
102 'title' => array(
103 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
104 'config' => array(
105 'type' => 'input',
106 'size' => 20,
107 'eval' => 'trim,required',
108 'max' => 256
109 )
110 ),
111 'description' => array(
112 'exclude' => true,
113 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
114 'config' => array(
115 'type' => 'text',
116 'eval' => 'required',
117 'rows' => 30,
118 'cols' => 80,
119 )
120 ),
121 'logo' => array(
122 'exclude' => true,
123 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
124 'config' => array(
125 'type' => 'group',
126 'internal_type' => 'file',
127 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
128 'max_size' => 3000,
129 'uploadfolder' => 'uploads/pics',
130 'show_thumbs' => true,
131 'size' => 1,
132 'maxitems' => 1,
133 'minitems' => 0
134 )
135 ),
136 'posts' => array(
137 'exclude' => true,
138 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
139 'config' => array(
140 'type' => 'inline',
141 'foreign_table' => 'tx_blogexample_domain_model_post',
142 'foreign_field' => 'blog',
143 'foreign_sortby' => 'sorting',
144 'maxitems' => 999999,
145 'appearance' => array(
146 'collapseAll' => 1,
147 'expandSingle' => 1,
148 ),
149 )
150 ),
151 'administrator' => array(
152 'exclude' => true,
153 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
154 'config' => array(
155 'type' => 'select',
156 'renderType' => 'selectSingle',
157 'foreign_table' => 'fe_users',
158 'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
159 'items' => array(
160 array('--none--', 0),
161 ),
162 'wizards' => array(
163 '_VERTICAL' => 1,
164 'edit' => array(
165 'type' => 'popup',
166 'title' => 'Edit',
167 'module' => array(
168 'name' => 'wizard_edit',
169 ),
170 'icon' => 'actions-open',
171 'popup_onlyOpenIfSelected' => 1,
172 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1',
173 ),
174 'add' => array(
175 'type' => 'script',
176 'title' => 'Create new',
177 'icon' => 'actions-add',
178 'params' => array(
179 'table'=>'fe_users',
180 'pid' => '###CURRENT_PID###',
181 'setValue' => 'prepend'
182 ),
183 'module' => array(
184 'name' => 'wizard_add',
185 ),
186 ),
187 )
188 )
189 ),
190 ),
191 'types' => array(
192 '1' => array('showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator')
193 ),
194 'palettes' => array(
195 '1' => array('showitem' => '')
196 )
197 );