ext_tables.php 2.17 KB
Newer Older
Mathias Schreiber's avatar
Mathias Schreiber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}
if (!isset($_EXTKEY)) {
    $_EXTKEY = 'typo3_roadmap';
}
$TCA['tx_typo3roadmap_majorversion'] = array(
	'ctrl' => array(
		'title'     => 'LLL:EXT:typo3_roadmap/locallang_db.xml:tx_typo3roadmap_majorversion',		
		'label'     => 'title',	
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'sortby' => 'sorting',	
		'delete' => 'deleted',
        'dividers2tabs' => 1,
		'enablecolumns' => array(		
			'disabled' => 'hidden',	
			'starttime' => 'starttime',	
			'endtime' => 'endtime',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_typo3roadmap_majorversion.gif',
	),
);

$TCA['tx_typo3roadmap_minorversion'] = array(
	'ctrl' => array(
		'title'     => 'LLL:EXT:typo3_roadmap/locallang_db.xml:tx_typo3roadmap_minorversion',		
		'label'     => 'version',
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'sortby' => 'sorting',	
		'delete' => 'deleted',	
		'enablecolumns' => array(		
			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_typo3roadmap_minorversion.gif',
	),
);

$TCA['tx_typo3roadmap_phpversion'] = array(
	'ctrl' => array(
		'title'     => 'LLL:EXT:typo3_roadmap/locallang_db.xml:tx_typo3roadmap_phpversion',		
		'label'     => 'version',
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'sortby' => 'sorting',	
		'delete' => 'deleted',	
		'enablecolumns' => array(		
			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_typo3roadmap_phpversion.gif',
	),
);


t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1'] = 'layout,select_key,pages';


t3lib_extMgm::addPlugin(array(
	'LLL:EXT:typo3_roadmap/locallang_db.xml:tt_content.list_type_pi1',
	$_EXTKEY . '_pi1',
	t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
),'list_type');