|
21 | 21 | ], |
22 | 22 | 'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_post.gif', |
23 | 23 | ], |
24 | | - 'interface' => [ |
25 | | - 'maxDBListItems' => 100, |
26 | | - 'maxSingleDBListItems' => 500, |
27 | | - ], |
28 | 24 | 'columns' => [ |
29 | 25 | 'blog' => [ |
30 | 26 | 'exclude' => true, |
|
141 | 137 | ], |
142 | 138 | 'comments' => [ |
143 | 139 | 'exclude' => true, |
144 | | - 'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.comments', |
| 140 | + 'label' => 'Comments', |
145 | 141 | 'config' => [ |
146 | | - 'type' => 'inline', |
| 142 | + 'type' => 'group', |
| 143 | + 'allowed' => 'tx_blogexample_domain_model_comment', |
147 | 144 | 'foreign_table' => 'tx_blogexample_domain_model_comment', |
148 | 145 | 'foreign_field' => 'post', |
| 146 | + 'foreign_table_where' => 'ORDER BY tx_blogexample_domain_model_comment.uid', |
149 | 147 | 'size' => 10, |
150 | | - 'autoSizeMax' => 30, |
151 | | - 'multiple' => 0, |
152 | | - 'appearance' => [ |
153 | | - 'collapseAll' => 1, |
154 | | - 'expandSingle' => 1, |
155 | | - ], |
| 148 | + 'maxitems' => 9999, |
| 149 | + 'minitems' => 0, |
| 150 | + 'default' => '', |
156 | 151 | ], |
157 | 152 | ], |
158 | 153 | 'related_posts' => [ |
|
192 | 187 | 'maxitems' => 1, |
193 | 188 | ], |
194 | 189 | ], |
195 | | - 'additional_comments' => [ |
196 | | - 'exclude' => true, |
197 | | - 'label' => 'LLL:blog_example.db:tx_blogexample_domain_model_post.additional_comments', |
198 | | - 'config' => [ |
199 | | - 'type' => 'inline', // this will store the comments uids in the additional_comments field (CSV) |
200 | | - 'foreign_table' => 'tx_blogexample_domain_model_comment', |
201 | | - 'minitems' => 0, |
202 | | - 'maxitems' => 200, |
203 | | - ], |
204 | | - ], |
205 | 190 | 'category' => [ |
206 | 191 | 'config' => [ |
207 | 192 | 'type' => 'category', |
|
211 | 196 | 'types' => [ |
212 | 197 | '1' => ['showitem' => ' |
213 | 198 | --div--;LLL:core.form.tabs:general, |
214 | | - blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, additional_comments, |
| 199 | + blog, title, date, author, second_author, content, tags, comments, related_posts, additional_name, additional_info, |
215 | 200 | --div--;LLL:core.form.tabs:categories, |
216 | 201 | category, |
217 | 202 | --div--;LLL:core.form.tabs:access, |
|
0 commit comments