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