[TASK] Add searchFields in TCA for sys_news, sys_action and sys_note
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_news.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_news',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'adminOnly' => true,
10 'rootLevel' => 1,
11 'delete' => 'deleted',
12 'enablecolumns' => [
13 'disabled' => 'hidden',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ],
17 'default_sortby' => 'crdate DESC',
18 'typeicon_classes' => [
19 'default' => 'mimetypes-x-sys_news'
20 ],
21 'searchFields' => 'title,content'
22 ],
23 'interface' => [
24 'showRecordFieldList' => 'hidden,title,content,starttime,endtime'
25 ],
26 'columns' => [
27 'hidden' => [
28 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
29 'exclude' => true,
30 'config' => [
31 'type' => 'check',
32 'renderType' => 'checkboxToggle',
33 'default' => 0,
34 'items' => [
35 [
36 0 => '',
37 1 => '',
38 'invertStateDisplay' => true
39 ]
40 ],
41 ]
42 ],
43 'starttime' => [
44 'exclude' => true,
45 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
46 'config' => [
47 'type' => 'input',
48 'renderType' => 'inputDateTime',
49 'eval' => 'datetime,int',
50 'default' => 0
51 ]
52 ],
53 'endtime' => [
54 'exclude' => true,
55 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
56 'config' => [
57 'type' => 'input',
58 'renderType' => 'inputDateTime',
59 'eval' => 'datetime,int',
60 'default' => 0
61 ]
62 ],
63 'title' => [
64 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title',
65 'config' => [
66 'type' => 'input',
67 'size' => 30,
68 'max' => 255,
69 'eval' => 'required'
70 ]
71 ],
72 'content' => [
73 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.text',
74 'config' => [
75 'type' => 'text',
76 'cols' => 48,
77 'rows' => 5,
78 'enableRichtext' => true,
79 'richtextConfiguration' => 'default',
80 ],
81 ]
82 ],
83 'types' => [
84 '1' => [
85 'showitem' => '
86 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
87 title,content,
88 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
89 hidden, --palette--;;timeRestriction,
90 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
91 ',
92 ],
93 ],
94 'palettes' => [
95 'timeRestriction' => ['showitem' => 'starttime, endtime']
96 ],
97 ];