This repository was archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathext_localconf.php
More file actions
executable file
·53 lines (43 loc) · 2.56 KB
/
ext_localconf.php
File metadata and controls
executable file
·53 lines (43 loc) · 2.56 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
/**
* Configure the Plugin to call the
* right combination of Controller and Action according to
* the user input (default settings, FlexForm, URL etc.)
*
* By default, first Action of first Controller is called
* if no other settings are given.
*/
$controllerActions = [ // An array holding the controller-action-combinations that are accessible
PunktDe\PtExtlist\Controller\ListController::class => 'list,sort', // The first controller and its first action will be the default
PunktDe\PtExtlist\Controller\ExportController::class =>'showLink,download',
PunktDe\PtExtlist\Controller\FilterboxController::class => 'show,submit,reset,resetFilter',
PunktDe\PtExtlist\Controller\PagerController::class => 'show',
PunktDe\PtExtlist\Controller\BookmarkController::class => 'show,save,delete,restore',
PunktDe\PtExtlist\Controller\BreadCrumbsController::class => 'index,resetFilter',
PunktDe\PtExtlist\Controller\ColumnSelectorController::class => 'show',
PunktDe\PtExtlist\Controller\AjaxFilterController::class => 'getFilterElement'
];
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'PtExtlist', // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
'Pi1', // A unique name of the plugin in UpperCamelCase
$controllerActions,
$controllerActions
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'PtExtlist', // The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
'Cached', // A unique name of the plugin in UpperCamelCase
$controllerActions,
[]
);
if (TYPO3_MODE == 'BE') {
// Hooks
$TYPO3_CONF_VARS['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['ptextlist_pi1']['pt_extlist'] = 'EXT:pt_extlist/Classes/Hooks/CMSLayoutHook.php:user_Tx_PtExtlist_Hooks_CMSLayoutHook->getExtensionSummary';
}
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('pt_extlist').'Classes/Utility/FlexformDataProvider.php';
/**
* Register LifeCycle Manager
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_eofe'][] = PunktDe\PtExtbase\Lifecycle\HookManager::class .'->updateEnd';