-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathext_tables.php
98 lines (91 loc) · 2.55 KB
/
ext_tables.php
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$TCA['tx_newsfeedimport_feeds'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:feeds',
'label' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY title',
'dividers2tabs' => TRUE,
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/Tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/feed.gif',
'type' => 'default_extension'
),
'feInterface' => array(
'fe_admin_fieldList' => 'hidden, starttime, endtime, title, url, errors, errors_count, target',
)
);
$tempColumns = array(
'tx_newsfeedimport_feed' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.feed',
'config' => array(
'type' => 'input',
'size' => '2',
'readOnly' => 1
)
),
'tx_newsfeedimport_guid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.guid',
'config' => array(
'type' => 'input',
'size' => '30',
'readOnly' => 1
)
),
'tx_newsfeedimport_edited' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.edited',
'config' => array(
'type' => 'check',
'default' => '0',
'readOnly' => 1
)
),
);
t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news', $tempColumns, 1);
#t3lib_extMgm::addToAllTCAtypes('tt_news','tx_newsfeedimport_uid;;;;1-1-1, tx_newsfeedimport_edited');
$tempColumns = array(
'tx_newsfeedimport_feed' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.feed',
'config' => array(
'type' => 'input',
'size' => '2',
'readOnly' => 1
)
),
'tx_newsfeedimport_guid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.guid',
'config' => array(
'type' => 'input',
'size' => '30',
'readOnly' => 1
)
),
'tx_newsfeedimport_edited' => array(
'exclude' => 1,
'label' => 'LLL:EXT:newsfeedimport/Resources/Private/Language/db.xml:tt_news.edited',
'config' => array(
'type' => 'check',
'default' => '0',
'readOnly' => 1
)
),
);
t3lib_div::loadTCA('tx_news_domain_model_news');
t3lib_extMgm::addTCAcolumns('tx_news_domain_model_news', $tempColumns, 1);
?>