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