677e2555a057977d8ed69f8be9044f4b8193ec0b
[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' => 1,
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' => 1,
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' => 1,
70 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
71 'config' => array(
72 'type' => 'check'
73 )
74 ),
75 'fe_group' => array(
76 'exclude' => 1,
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 'exclude' => 0,
104 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.title',
105 'config' => array(
106 'type' => 'input',
107 'size' => 20,
108 'eval' => 'trim,required',
109 'max' => 256
110 )
111 ),
112 'description' => array(
113 'exclude' => 1,
114 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.description',
115 'config' => array(
116 'type' => 'text',
117 'eval' => 'required',
118 'rows' => 30,
119 'cols' => 80,
120 )
121 ),
122 'logo' => array(
123 'exclude' => 1,
124 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.logo',
125 'config' => array(
126 'type' => 'group',
127 'internal_type' => 'file',
128 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
129 'max_size' => 3000,
130 'uploadfolder' => 'uploads/pics',
131 'show_thumbs' => 1,
132 'size' => 1,
133 'maxitems' => 1,
134 'minitems' => 0
135 )
136 ),
137 'posts' => array(
138 'exclude' => 1,
139 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.posts',
140 'config' => array(
141 'type' => 'inline',
142 'foreign_table' => 'tx_blogexample_domain_model_post',
143 'foreign_field' => 'blog',
144 'foreign_sortby' => 'sorting',
145 'maxitems' => 999999,
146 'appearance' => array(
147 'collapseAll' => 1,
148 'expandSingle' => 1,
149 ),
150 )
151 ),
152 'administrator' => array(
153 'exclude' => 1,
154 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_blog.administrator',
155 'config' => array(
156 'type' => 'select',
157 'renderType' => 'selectSingle',
158 'foreign_table' => 'fe_users',
159 'foreign_table_where' => "AND fe_users.tx_extbase_type='Tx_BlogExample_Domain_Model_Administrator'",
160 'items' => array(
161 array('--none--', 0),
162 ),
163 'wizards' => array(
164 '_VERTICAL' => 1,
165 'edit' => array(
166 'type' => 'popup',
167 'title' => 'Edit',
168 'module' => array(
169 'name' => 'wizard_edit',
170 ),
171 'icon' => 'actions-open',
172 'popup_onlyOpenIfSelected' => 1,
173 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1',
174 ),
175 'add' => array(
176 'type' => 'script',
177 'title' => 'Create new',
178 'icon' => 'actions-add',
179 'params' => array(
180 'table'=>'fe_users',
181 'pid' => '###CURRENT_PID###',
182 'setValue' => 'prepend'
183 ),
184 'module' => array(
185 'name' => 'wizard_add',
186 ),
187 ),
188 )
189 )
190 ),
191 ),
192 'types' => array(
193 '1' => array('showitem' => 'sys_language_uid, hidden, fe_group, title, description, logo, posts, administrator')
194 ),
195 'palettes' => array(
196 '1' => array('showitem' => '')
197 )
198 );