-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
160 lines (132 loc) · 7.77 KB
/
ext_localconf.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
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
151
152
153
154
155
156
157
158
159
160
<?php
declare(strict_types=1);
use Pixelant\Qbank\Xclass\Form\Container\FilesControlContainer as FilesControlContainerXclass;
use TYPO3\CMS\Backend\Form\Container\FilesControlContainer;
defined('TYPO3') or die();
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][FilesControlContainer::class] = [
'className' => FilesControlContainerXclass::class,
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'tx-qbank-logo',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:qbank/Resources/Public/Icons/qbank-logo.svg']
);
$iconRegistry->registerIcon(
'mimetypes-x-qbank-mapping',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:qbank/Resources/Public/Icons/mimetypes-x-qbank-mapping.svg']
);
if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties'])) {
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties'] = [];
}
// QBank file properties.
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['name'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.name',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['title'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.title',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['description'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.description',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['alternative'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file.alternative',
'disabled' => false,
];
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('filemetadata')) {
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['keywords'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.keywords',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['caption'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.caption',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['creator_tool'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator_tool',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['download_name'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.download_name',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['creator'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.creator',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['publisher'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.publisher',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['source'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.source',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['copyright'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.copyright',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['location_country'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_country',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['location_region'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_region',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['location_city'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.location_city',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['latitude'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\FloatTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.latitude',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['longitude'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\FloatTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.longitude',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['ranking'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\FloatTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.ranking',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['content_creation_date'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\IntegerTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_creation_date',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['content_modification_date'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\IntegerTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.content_modification_date',
'disabled' => false,
];
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['qbank']['fileProperties']['note'] = [
'typeConverter' => \Pixelant\Qbank\TypeConverter\StringTypeConverter::class,
'label' => 'LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.note',
'disabled' => false,
];
}