Added XCLASS functionality to ext_update, and made LinkViewHelper more readable
[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_is_event' => array(
11 'exclude' => 0,
12 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_is_event',
13 'config' => array(
14 'type' => 'check',
15 'default' => 0
16 ),
17 ),
18 'tx_roqnewsevent_startdate' => array(
19 'exclude' => 0,
20 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_startdate',
21 'config' => array(
22 'type' => 'input',
23 'size' => 7,
24 'eval' => 'date',
25 'checkbox' => 1,
26 ),
27 ),
28 'tx_roqnewsevent_starttime' => array(
29 'exclude' => 0,
30 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_starttime',
31 'config' => array(
32 'type' => 'input',
33 'size' => 4,
34 'eval' => 'time',
35 'checkbox' => 1,
36 ),
37 ),
38 'tx_roqnewsevent_enddate' => array(
39 'exclude' => 0,
40 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_enddate',
41 'config' => array(
42 'type' => 'input',
43 'size' => 7,
44 'eval' => 'date',
45 'checkbox' => 1,
46 ),
47 ),
48 'tx_roqnewsevent_endtime' => array(
49 'exclude' => 0,
50 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_endtime',
51 'config' => array(
52 'type' => 'input',
53 'size' => 4,
54 'eval' => 'time',
55 'checkbox' => 1,
56 ),
57 ),
58 'tx_roqnewsevent_location' => array(
59 'exclude' => 0,
60 'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_location',
61 'config' => array(
62 'type' => 'input',
63 'size' => 30,
64 'eval' => 'trim'
65 ),
66 ),
67 );
68
69 t3lib_extMgm::addTCAcolumns('tx_news_domain_model_news',$tmp_roq_newsevent_columns);
70
71 t3lib_extMgm::addToAllTCAtypes('tx_news_domain_model_news', ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,');
72 t3lib_extMgm::addToAllTCAtypes('tx_news_domain_model_news', 'tx_roqnewsevent_is_event, tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location');
73
74 /*
75 $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');
76
77 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] = $TCA['tx_news_domain_model_news']['types']['0']['showitem'];
78 $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,';
79 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= 'tx_roqnewsevent_is_event, tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location';
80 */
81
82 ?>