996970832f4813941f90b4b40b9e3207d304c107
[TYPO3CMS/Extensions/roq_newsevent.git] / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'News event');
7
8 $tmp_roq_newsevent_columns = array(
9
10 'tx_roqnewsevent_startdate' => array(
11 'exclude' => 0,
12 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_startdate',
13 'config' => array(
14 'type' => 'input',
15 'size' => 7,
16 'eval' => 'date,required',
17 'checkbox' => 1,
18 ),
19 ),
20 'tx_roqnewsevent_starttime' => array(
21 'exclude' => 0,
22 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_starttime',
23 'config' => array(
24 'type' => 'input',
25 'size' => 4,
26 'eval' => 'time',
27 'checkbox' => 1,
28 ),
29 ),
30 'tx_roqnewsevent_enddate' => array(
31 'exclude' => 0,
32 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_enddate',
33 'config' => array(
34 'type' => 'input',
35 'size' => 7,
36 'eval' => 'date',
37 'checkbox' => 1,
38 ),
39 ),
40 'tx_roqnewsevent_endtime' => array(
41 'exclude' => 0,
42 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_endtime',
43 'config' => array(
44 'type' => 'input',
45 'size' => 4,
46 'eval' => 'time',
47 'checkbox' => 1,
48 ),
49 ),
50 'tx_roqnewsevent_location' => array(
51 'exclude' => 0,
52 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_location',
53 'config' => array(
54 'type' => 'input',
55 'size' => 30,
56 'eval' => 'trim'
57 ),
58 ),
59 );
60
61 t3lib_extMgm::addTCAcolumns('tx_news_domain_model_news',$tmp_roq_newsevent_columns);
62
63 $TCA['tx_news_domain_model_news']['columns'][$TCA['tx_news_domain_model_news']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news.tx_extbase_type.Tx_RoqNewsevent_Event','Tx_RoqNewsevent_Event');
64
65 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] = $TCA['tx_news_domain_model_news']['types']['0']['showitem'];
66 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,';
67 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= 'tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location';
68
69 ?>