4eeb9a5cc184a9479cbf25b0a785049688d255a9
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Configuration / TCA / sys_note.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'subject',
5 'tstamp' => 'tstamp',
6 'crdate' => 'crdate',
7 'cruser_id' => 'cruser',
8 'prependAtCopy' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.prependAtCopy',
9 'delete' => 'deleted',
10 'title' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note',
11 'typeicon_classes' => [
12 'default' => 'mimetypes-x-sys_note'
13 ],
14 'sortby' => 'sorting'
15 ],
16 'interface' => [
17 'showRecordFieldList' => 'category,subject,message,personal'
18 ],
19 'columns' => [
20 'category' => [
21 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.category',
22 'config' => [
23 'type' => 'select',
24 'renderType' => 'selectSingle',
25 'items' => [
26 ['', '0', 'sysnote-type-0'],
27 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.1', '1', 'sysnote-type-1'],
28 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.3', '3', 'sysnote-type-3'],
29 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.4', '4', 'sysnote-type-4'],
30 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.2', '2', 'sysnote-type-2']
31 ],
32 'default' => 0,
33 'fieldWizard' => [
34 'selectIcons' => [
35 'disabled' => false,
36 ],
37 ],
38 ]
39 ],
40 'subject' => [
41 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.subject',
42 'config' => [
43 'type' => 'input',
44 'size' => 40,
45 'max' => 255
46 ]
47 ],
48 'message' => [
49 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.message',
50 'config' => [
51 'type' => 'text',
52 'cols' => 40,
53 'rows' => 15
54 ]
55 ],
56 'personal' => [
57 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.personal',
58 'config' => [
59 'type' => 'check',
60 'renderType' => 'checkboxToggle',
61 'items' => [
62 [
63 0 => '',
64 1 => '',
65 ]
66 ],
67 ]
68 ],
69 'position' => [
70 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position',
71 'config' => [
72 'type' => 'select',
73 'renderType' => 'selectSingle',
74 'items' => [
75 [
76 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position.top',
77 \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_TOP
78 ],
79 [
80 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position.bottom',
81 \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_BOTTOM
82 ],
83 ],
84 'default' => \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_BOTTOM,
85 'fieldWizard' => [
86 'selectIcons' => [
87 'disabled' => false,
88 ],
89 ],
90 ]
91 ]
92 ],
93 'types' => [
94 '0' => ['showitem' => '
95 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
96 category, subject,message,position,
97 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
98 personal,
99 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
100 ']
101 ]
102 ];