‪TYPO3CMS  10.4
tx_blogexample_domain_model_comment.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'title' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment',
6  'label' => 'date',
7  'label_alt' => 'author',
8  'label_alt_force' => true,
9  'tstamp' => 'tstamp',
10  'crdate' => 'crdate',
11  'delete' => 'deleted',
12  'enablecolumns' => [
13  'disabled' => 'hidden'
14  ],
15  'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_comment.gif'
16  ],
17  'columns' => [
18  'hidden' => [
19  'exclude' => true,
20  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
21  'config' => [
22  'type' => 'check'
23  ]
24  ],
25  'date' => [
26  'exclude' => true,
27  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.date',
28  'config' => [
29  'type' => 'input',
30  'renderType' => 'inputDateTime',
31  'dbType' => 'datetime',
32  'size' => 12,
33  'eval' => 'datetime, required',
34  'default' => time()
35  ]
36  ],
37  'author' => [
38  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.author',
39  'config' => [
40  'type' => 'input',
41  'size' => 20,
42  'eval' => 'trim, required',
43  'max' => 256
44  ]
45  ],
46  'email' => [
47  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.email',
48  'config' => [
49  'type' => 'input',
50  'size' => 20,
51  'eval' => 'trim, required',
52  'max' => 256
53  ]
54  ],
55  'content' => [
56  'exclude' => true,
57  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.content',
58  'config' => [
59  'type' => 'text',
60  'rows' => 30,
61  'cols' => 80
62  ]
63  ],
64  'post' => [
65  'config' => [
66  'type' => 'passthrough',
67  ]
68  ],
69  ],
70  'types' => [
71  '1' => ['showitem' => 'hidden, date, author, email, content']
72  ],
73  'palettes' => [
74  '1' => ['showitem' => '']
75  ]
76 ];