ext_tables.php 2.35 KB
Newer Older
Mathias Schreiber's avatar
Mathias Schreiber committed
1
2
<?php
if (!defined('TYPO3_MODE')) {
Mathias Schreiber's avatar
Mathias Schreiber committed
3
    die ('Access denied.');
Mathias Schreiber's avatar
Mathias Schreiber committed
4
5
6
7
8
}
if (!isset($_EXTKEY)) {
    $_EXTKEY = 'typo3_roadmap';
}
$TCA['tx_typo3roadmap_majorversion'] = array(
Mathias Schreiber's avatar
Mathias Schreiber committed
9
10
11
12
13
14
15
16
    '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',
Mathias Schreiber's avatar
Mathias Schreiber committed
17
        'dividers2tabs' => 1,
Mathias Schreiber's avatar
Mathias Schreiber committed
18
19
20
21
22
23
24
25
        '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',
    ),
Mathias Schreiber's avatar
Mathias Schreiber committed
26
27
28
);

$TCA['tx_typo3roadmap_minorversion'] = array(
Mathias Schreiber's avatar
Mathias Schreiber committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
    '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',
    ),
Mathias Schreiber's avatar
Mathias Schreiber committed
43
44
45
);

$TCA['tx_typo3roadmap_phpversion'] = array(
Mathias Schreiber's avatar
Mathias Schreiber committed
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    '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',
    ),
Mathias Schreiber's avatar
Mathias Schreiber committed
60
61
62
63
);


t3lib_div::loadTCA('tt_content');
Mathias Schreiber's avatar
Mathias Schreiber committed
64
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages';
Mathias Schreiber's avatar
Mathias Schreiber committed
65
66
67


t3lib_extMgm::addPlugin(array(
Mathias Schreiber's avatar
Mathias Schreiber committed
68
69
70
71
    'LLL:EXT:typo3_roadmap/locallang_db.xml:tt_content.list_type_pi1',
    $_EXTKEY . '_pi1',
    t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'
), 'list_type');