TYPO3 CMS  TYPO3_7-6
Comment.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 $TCA['tx_blogexample_domain_model_comment'] = [
5  'ctrl' => $TCA['tx_blogexample_domain_model_comment']['ctrl'],
6  'interface' => [
7  'showRecordFieldList' => 'hidden, date, author, email, content'
8  ],
9  'columns' => [
10  'hidden' => [
11  'exclude' => 1,
12  'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
13  'config' => [
14  'type' => 'check'
15  ]
16  ],
17  'date' => [
18  'exclude' => 1,
19  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.date',
20  'config' => [
21  'dbType' => 'datetime',
22  'type' => 'input',
23  'size' => 12,
24  'eval' => 'datetime, required',
25  'default' => time()
26  ]
27  ],
28  'author' => [
29  'exclude' => 0,
30  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.author',
31  'config' => [
32  'type' => 'input',
33  'size' => 20,
34  'eval' => 'trim, required',
35  'max' => 256
36  ]
37  ],
38  'email' => [
39  'exclude' => 0,
40  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.email',
41  'config' => [
42  'type' => 'input',
43  'size' => 20,
44  'eval' => 'trim, required',
45  'max' => 256
46  ]
47  ],
48  'content' => [
49  'exclude' => 1,
50  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_comment.content',
51  'config' => [
52  'type' => 'text',
53  'rows' => 30,
54  'cols' => 80
55  ]
56  ],
57  'post' => [
58  'config' => [
59  'type' => 'passthrough',
60  ]
61  ],
62  ],
63  'types' => [
64  '1' => ['showitem' => 'hidden, date, author, email, content']
65  ],
66  'palettes' => [
67  '1' => ['showitem' => '']
68  ]
69 ];
$TCA['tx_blogexample_domain_model_comment']
Definition: Comment.php:4