ea4f852278c2bde4dc222456aaa9e1fac182d8fe
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_news.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_news',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'adminOnly' => TRUE,
10 'rootLevel' => TRUE,
11 'delete' => 'deleted',
12 'enablecolumns' => array(
13 'disabled' => 'hidden',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ),
17 'default_sortby' => 'crdate DESC',
18 'typeicon_classes' => array(
19 'default' => 'mimetypes-x-sys_news'
20 ),
21 'dividers2tabs' => TRUE
22 ),
23 'interface' => array(
24 'showRecordFieldList' => 'hidden,title,content,starttime,endtime'
25 ),
26 'columns' => array(
27 'hidden' => array(
28 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
29 'exclude' => 1,
30 'config' => array(
31 'type' => 'check',
32 'default' => '0'
33 )
34 ),
35 'starttime' => array(
36 'exclude' => 1,
37 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
38 'config' => array(
39 'type' => 'input',
40 'size' => '13',
41 'max' => '20',
42 'eval' => 'datetime',
43 'default' => '0'
44 )
45 ),
46 'endtime' => array(
47 'exclude' => 1,
48 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
49 'config' => array(
50 'type' => 'input',
51 'size' => '13',
52 'max' => '20',
53 'eval' => 'datetime',
54 'default' => '0'
55 )
56 ),
57 'title' => array(
58 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title',
59 'config' => array(
60 'type' => 'input',
61 'size' => '30',
62 'max' => '255',
63 'eval' => 'required'
64 )
65 ),
66 'content' => array(
67 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.text',
68 'config' => array(
69 'type' => 'text',
70 'cols' => '48',
71 'rows' => '5',
72 'wizards' => array(
73 '_PADDING' => 4,
74 '_VALIGN' => 'middle',
75 'RTE' => array(
76 'notNewRecords' => 1,
77 'RTEonly' => 1,
78 'type' => 'script',
79 'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE',
80 'icon' => 'wizard_rte2.gif',
81 'script' => 'wizard_rte.php'
82 )
83 )
84 )
85 )
86 ),
87 'types' => array(
88 '1' => array('showitem' => '
89 hidden, title, content;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3,
90 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_news.tabs.access, starttime, endtime')
91 )
92 );