9393e73533be6ba7a54e846f529f4967aa29b95f
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Configuration / TCA / tx_blogexample_domain_model_post.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_post',
5 'label' => 'title',
6 'label_alt' => 'author',
7 'label_alt_force' => true,
8 'tstamp' => 'tstamp',
9 'crdate' => 'crdate',
10 'versioningWS' => true,
11 'versioning_followPages' => true,
12 'origUid' => 't3_origuid',
13 'languageField' => 'sys_language_uid',
14 'transOrigPointerField' => 'l18n_parent',
15 'transOrigDiffSourceField' => 'l18n_diffsource',
16 'delete' => 'deleted',
17 'enablecolumns' => array(
18 'disabled' => 'hidden'
19 ),
20 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_post.gif'
21 ),
22 'interface' => array(
23 'showRecordFieldList' => 'title, date, author',
24 'maxDBListItems' => 100,
25 'maxSingleDBListItems' => 500
26 ),
27 'types' => array(
28 '1' => array('showitem' => 'sys_language_uid, hidden, blog, title, date, author, content, tags, comments, related_posts')
29 ),
30 'columns' => array(
31 'sys_language_uid' => array(
32 'exclude' => 1,
33 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
34 'config' => array(
35 'type' => 'select',
36 'renderType' => 'selectSingle',
37 'foreign_table' => 'sys_language',
38 'foreign_table_where' => 'ORDER BY sys_language.title',
39 'items' => array(
40 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
41 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
42 ),
43 'default' => 0
44 )
45 ),
46 'l18n_parent' => array(
47 'displayCond' => 'FIELD:sys_language_uid:>:0',
48 'exclude' => 1,
49 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
50 'config' => array(
51 'type' => 'select',
52 'renderType' => 'selectSingle',
53 'items' => array(
54 array('', 0),
55 ),
56 'foreign_table' => 'tx_blogexample_domain_model_post',
57 'foreign_table_where' => 'AND tx_blogexample_domain_model_post.uid=###REC_FIELD_l18n_parent### AND tx_blogexample_domain_model_post.sys_language_uid IN (-1,0)',
58 )
59 ),
60 'l18n_diffsource' => array(
61 'config'=>array(
62 'type' => 'passthrough',
63 'default' => ''
64 )
65 ),
66 'hidden' => array(
67 'exclude' => 1,
68 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
69 'config' => array(
70 'type' => 'check'
71 )
72 ),
73 'blog' => array(
74 'exclude' => 1,
75 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.blog',
76 'config' => array(
77 'type' => 'select',
78 'renderType' => 'selectSingle',
79 'foreign_table' => 'tx_blogexample_domain_model_blog',
80 'maxitems' => 1,
81 )
82 ),
83 'title' => array(
84 'exclude' => 0,
85 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.title',
86 'config' => array(
87 'type' => 'input',
88 'size' => 20,
89 'eval' => 'trim, required',
90 'max' => 256
91 )
92 ),
93 'date' => array(
94 'exclude' => 1,
95 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.date',
96 'config' => array(
97 'type' => 'input',
98 'size' => 12,
99 'eval' => 'datetime, required',
100 'default' => time()
101 )
102 ),
103 'author' => array(
104 'exclude' => 1,
105 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.author',
106 'config' => array(
107 'type' => 'select',
108 'renderType' => 'selectSingle',
109 'foreign_table' => 'tx_blogexample_domain_model_person',
110 'wizards' => array(
111 '_VERTICAL' => 1,
112 'edit' => array(
113 'type' => 'popup',
114 'title' => 'Edit',
115 'module' => array(
116 'name' => 'wizard_edit',
117 ),
118 'icon' => 'actions-open',
119 'popup_onlyOpenIfSelected' => 1,
120 'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1',
121 ),
122 'add' => array(
123 'type' => 'script',
124 'title' => 'Create new',
125 'icon' => 'actions-add',
126 'params' => array(
127 'table'=>'tx_blogexample_domain_model_person',
128 'pid' => '###CURRENT_PID###',
129 'setValue' => 'prepend'
130 ),
131 'module' => array(
132 'name' => 'wizard_add',
133 ),
134 ),
135 )
136 )
137 ),
138 'content' => array(
139 'exclude' => 1,
140 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.content',
141 'config' => array(
142 'type' => 'text',
143 'rows' => 30,
144 'cols' => 80
145 )
146 ),
147 'tags' => array(
148 'exclude' => 1,
149 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.tags',
150 'config' => array(
151 'type' => 'inline',
152 'foreign_table' => 'tx_blogexample_domain_model_tag',
153 'MM' => 'tx_blogexample_post_tag_mm',
154 'maxitems' => 9999,
155 'appearance' => array(
156 'useCombination' => 1,
157 'useSortable' => 1,
158 'collapseAll' => 1,
159 'expandSingle' => 1,
160 )
161 )
162 ),
163 'comments' => array(
164 'exclude' => 1,
165 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.comments',
166 'config' => array(
167 'type' => 'inline',
168 'foreign_table' => 'tx_blogexample_domain_model_comment',
169 'foreign_field' => 'post',
170 'size' => 10,
171 'maxitems' => 9999,
172 'autoSizeMax' => 30,
173 'multiple' => 0,
174 'appearance' => array(
175 'collapseAll' => 1,
176 'expandSingle' => 1,
177 )
178 )
179 ),
180 'related_posts' => array(
181 'exclude' => 1,
182 'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_post.related',
183 'config' => array(
184 'type' => 'select',
185 'renderType' => 'selectMultipleSideBySide',
186 'size' => 10,
187 'maxitems' => 9999,
188 'autoSizeMax' => 30,
189 'multiple' => 0,
190 'foreign_table' => 'tx_blogexample_domain_model_post',
191 'foreign_table_where' => 'AND ###THIS_UID### != tx_blogexample_domain_model_post.uid',
192 'MM' => 'tx_blogexample_post_post_mm',
193 'MM_opposite_field' => 'related_posts',
194 )
195 ),
196 )
197 );