[TASK] Add searchFields in TCA for sys_news, sys_action and sys_note
[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 'searchFields' => 'subject,message'
16 ],
17 'interface' => [
18 'showRecordFieldList' => 'category,subject,message,personal'
19 ],
20 'columns' => [
21 'category' => [
22 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.category',
23 'config' => [
24 'type' => 'select',
25 'renderType' => 'selectSingle',
26 'items' => [
27 ['', '0', 'sysnote-type-0'],
28 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.1', '1', 'sysnote-type-1'],
29 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.3', '3', 'sysnote-type-3'],
30 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.4', '4', 'sysnote-type-4'],
31 ['LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.category.I.2', '2', 'sysnote-type-2']
32 ],
33 'default' => 0,
34 'fieldWizard' => [
35 'selectIcons' => [
36 'disabled' => false,
37 ],
38 ],
39 ]
40 ],
41 'subject' => [
42 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.subject',
43 'config' => [
44 'type' => 'input',
45 'size' => 40,
46 'max' => 255
47 ]
48 ],
49 'message' => [
50 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.message',
51 'config' => [
52 'type' => 'text',
53 'cols' => 40,
54 'rows' => 15
55 ]
56 ],
57 'personal' => [
58 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.personal',
59 'config' => [
60 'type' => 'check',
61 'renderType' => 'checkboxToggle',
62 'items' => [
63 [
64 0 => '',
65 1 => '',
66 ]
67 ],
68 ]
69 ],
70 'position' => [
71 'label' => 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position',
72 'config' => [
73 'type' => 'select',
74 'renderType' => 'selectSingle',
75 'items' => [
76 [
77 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position.top',
78 \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_TOP
79 ],
80 [
81 'LLL:EXT:sys_note/Resources/Private/Language/locallang_tca.xlf:sys_note.position.bottom',
82 \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_BOTTOM
83 ],
84 ],
85 'default' => \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository::SYS_NOTE_POSITION_BOTTOM,
86 'fieldWizard' => [
87 'selectIcons' => [
88 'disabled' => false,
89 ],
90 ],
91 ]
92 ]
93 ],
94 'types' => [
95 '0' => ['showitem' => '
96 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
97 category, subject,message,position,
98 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
99 personal,
100 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
101 ']
102 ]
103 ];