-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathext_localconf.php
85 lines (77 loc) · 2.24 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
<?php
/*
* This file is part of the package evoweb/sessionplaner.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use Evoweb\Sessionplaner\Controller\SessionController;
use Evoweb\Sessionplaner\Controller\SessionplanController;
use Evoweb\Sessionplaner\Controller\SpeakerController;
use Evoweb\Sessionplaner\Controller\SuggestController;
use Evoweb\Sessionplaner\Controller\TagController;
use Evoweb\Sessionplaner\Updates\SessionPathSegmentUpdate;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') or die('Access denied.');
// PageTS
ExtensionManagementUtility::addPageTSConfig('@import \'EXT:sessionplaner/Configuration/PageTS/ModWizards.tsconfig\'');
// Register "sessionplannervh" as global fluid namespace
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['sessionplanervh'][] = 'Evoweb\\Sessionplaner\\ViewHelpers';
// Register Title Provider
ExtensionManagementUtility::addTypoScriptSetup(trim('
config.pageTitleProviders {
event {
provider = Evoweb\Sessionplaner\TitleTagProvider\EventTitleTagProvider
before = seo
after = altPageTitle
}
speaker {
provider = Evoweb\Sessionplaner\TitleTagProvider\SpeakerTitleTagProvider
before = seo
after = altPageTitle
}
}
'));
// Plugins
ExtensionUtility::configurePlugin(
'Sessionplaner',
'Session',
[
SessionController::class => 'list, show',
]
);
ExtensionUtility::configurePlugin(
'Sessionplaner',
'Sessionplan',
[
SessionplanController::class => 'display',
]
);
ExtensionUtility::configurePlugin(
'Sessionplaner',
'Speaker',
[
SpeakerController::class => 'list, show',
]
);
ExtensionUtility::configurePlugin(
'Sessionplaner',
'Suggest',
[
SuggestController::class => 'form',
],
[
SuggestController::class => 'form',
]
);
ExtensionUtility::configurePlugin(
'Sessionplaner',
'Tag',
[
TagController::class => 'show',
]
);
// Upgrades
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][SessionPathSegmentUpdate::class]
= SessionPathSegmentUpdate::class;