TYPO3 CMS  TYPO3_7-6
Person.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 $TCA['tx_blogexample_domain_model_person'] = [
5  'ctrl' => $TCA['tx_blogexample_domain_model_person']['ctrl'],
6  'interface' => [
7  'showRecordFieldList' => 'firstname, lastname, email, avatar'
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  'firstname' => [
18  'exclude' => 0,
19  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.firstname',
20  'config' => [
21  'type' => 'input',
22  'size' => 20,
23  'eval' => 'trim,required',
24  'max' => 256
25  ]
26  ],
27  'lastname' => [
28  'exclude' => 0,
29  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.lastname',
30  'config' => [
31  'type' => 'input',
32  'size' => 20,
33  'eval' => 'trim,required',
34  'max' => 256
35  ]
36  ],
37  'email' => [
38  'exclude' => 0,
39  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.email',
40  'config' => [
41  'type' => 'input',
42  'size' => 20,
43  'eval' => 'trim, required',
44  'max' => 256
45  ]
46  ],
47  'tags' => [
48  'exclude' => 1,
49  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags',
50  'config' => [
51  'type' => 'inline',
52  'foreign_table' => 'tx_blogexample_domain_model_tag',
53  'MM' => 'tx_blogexample_domain_model_tag_mm',
54  'foreign_table_field' => 'tablenames',
55  'foreign_match_fields' => [
56  'fieldname' => 'tags'
57  ],
58  'maxitems' => 9999,
59  'appearance' => [
60  'useCombination' => 1,
61  'useSortable' => 1,
62  'collapseAll' => 1,
63  'expandSingle' => 1,
64  ]
65  ]
66  ],
67  'tags_special' => [
68  'exclude' => 1,
69  'label' => 'LLL:EXT:blog_example/Resources/Private/Language/locallang_db.xml:tx_blogexample_domain_model_person.tags_special',
70  'config' => [
71  'type' => 'inline',
72  'foreign_table' => 'tx_blogexample_domain_model_tag',
73  'MM' => 'tx_blogexample_domain_model_tag_mm',
74  'foreign_table_field' => 'tablenames',
75  'foreign_match_fields' => [
76  'fieldname' => 'tags_special'
77  ],
78  'maxitems' => 9999,
79  'appearance' => [
80  'useCombination' => 1,
81  'useSortable' => 1,
82  'collapseAll' => 1,
83  'expandSingle' => 1,
84  ]
85  ]
86  ],
87  ],
88  'types' => [
89  '1' => ['showitem' => 'firstname, lastname, email, avatar, tags, tags_special']
90  ],
91  'palettes' => [
92  '1' => ['showitem' => '']
93  ]
94 ];
$TCA['tx_blogexample_domain_model_person']
Definition: Person.php:4