forked from TYPO3-svn-archive/operations
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_localconf.php
114 lines (106 loc) · 3.08 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
<?php
use Kanow\Operations\Updates\MigrateCategoryRelations;
use Kanow\Operations\Controller\OperationController;
use Kanow\Operations\Controller\ResourceController;
use Kanow\Operations\Controller\VehicleController;
use Kanow\Operations\Updates\MigratePlugins;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use GeorgRinger\NumberedPagination\NumberedPagination;
if (!defined('TYPO3')) {
die ('Access denied.');
}
$typo3VersionNumber = VersionNumberUtility::convertVersionNumberToInteger(
VersionNumberUtility::getNumericTypo3Version()
);
ExtensionUtility::configurePlugin(
'Operations',
'OperationList',
[
OperationController::class => 'list',
],
[
OperationController::class => 'search',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'OperationShow',
[
OperationController::class => 'show',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'OperationStatistics',
[
OperationController::class => 'statistics',
],
// non-cacheable actions
[
OperationController::class => 'statistics',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'VehicleList',
[
VehicleController::class => 'list',
],
[
VehicleController::class => '',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'VehicleShow',
[
VehicleController::class => 'show',
],
[
VehicleController::class => '',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'ResourceList',
[
ResourceController::class => 'list',
],
[
ResourceController::class => '',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'Operations',
'ResourceShow',
[
ResourceController::class => 'show',
],
[
ResourceController::class => '',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionManagementUtility::addTypoScriptSetup(trim('
plugin {
tx_operations_operationlist.view.pluginNamespace = tx_operations_pi1
tx_operations_operationshow.view.pluginNamespace = tx_operations_pi1
tx_operations_operationstatistics.view.pluginNamespace = tx_operations_pi1
tx_operations_vehiclelist.view.pluginNamespace = tx_operations_pi1
tx_operations_vehicleshow.view.pluginNamespace = tx_operations_pi1
tx_operations_resourcelist.view.pluginNamespace = tx_operations_pi1
tx_operations_resourceshow.view.pluginNamespace = tx_operations_pi1
}
'));
ExtensionManagementUtility::addTypoScriptSetup(trim('
# set class in your TypoScript if other pagination should be used
plugin.tx_operations.settings.paginate.class = TYPO3\CMS\Core\Pagination\SlidingWindowPagination'));