-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
150 lines (131 loc) · 4.41 KB
/
ext_tables.php
File metadata and controls
150 lines (131 loc) · 4.41 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
t3lib_extMgm::allowTableOnStandardPages('sys_file_mountpoints');
$TCA['sys_file_mountpoints'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:file/locallang_db.xml:sys_file_mountpoints',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => 'ORDER BY name',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_sys_file_mountpoints.gif',
),
);
t3lib_extMgm::allowTableOnStandardPages('sys_file');
$TCA['sys_file'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:file/locallang_db.xml:sys_file',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'default_sortby' => 'ORDER BY crdate',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_sys_file.gif',
),
);
t3lib_extMgm::allowTableOnStandardPages('sys_file_references');
$TCA['sys_file_references'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:file/locallang_db.xml:sys_file_references',
'label' => 'uid',
#'label_userFunc' => 'EXT:file/class.tx_file_userFunc.php:&tx_file_userFunc->getReferenceRecordLabel',
'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_sys_file_references.gif',
),
);
t3lib_extMgm::allowTableOnStandardPages('sys_file_collection');
$TCA['sys_file_collection'] = array (
'ctrl' => array (
'title' => 'LLL:EXT:file/locallang_db.xml:sys_file_collection',
'label' => 'name',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
'default_sortby' => 'ORDER BY crdate',
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_sys_file_collection.gif',
),
);
$tempColumns = array (
'tx_file_images_overlayed' => array (
'exclude' => 0,
'label' => 'LLL:EXT:file/locallang_db.xml:tt_content.tx_file_images_overlayed',
'config' => array (
'type' => 'inline',
'foreign_table' => 'sys_file_references',
'foreign_field' => 'uid_foreign',
'foreign_sortby' => 'sorting_foreign',
'foreign_table_field' => 'tablenames',
'foreign_label' => 'uid_local',
'foreign_selector' => 'uid_local',
)
),
);
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addTCAcolumns('tt_content',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('tt_content','tx_file_images_overlayed');
$tempColumns = array (
'tx_file_images_list' => array (
'exclude' => 0,
'label' => 'LLL:EXT:file/locallang_db.xml:pages.tx_file_images_list',
'config' => array (
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'sys_file',
'size' => 5,
'minitems' => 0,
'maxitems' => 100,
"MM" => "sys_file_references",
"MM_opposite_field" => "usage_count",
"MM_hasUidField" => TRUE,
"MM_match_fields" => array(
'fieldname' => 'tx_file_images_list',
),
)
),
);
t3lib_div::loadTCA('pages');
t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('pages','tx_file_images_list;;;;1-1-1');
?>