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