-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
87 lines (77 loc) · 2.23 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
<?php
declare(strict_types=1);
defined('TYPO3') or die();
use Evoweb\SfBooks\Controller\AuthorController;
use Evoweb\SfBooks\Controller\BookController;
use Evoweb\SfBooks\Controller\CategoryController;
use Evoweb\SfBooks\Controller\SearchController;
use Evoweb\SfBooks\Controller\SeriesController;
use Evoweb\SfBooks\User\IsbnEvaluation;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
(static function () {
ExtensionUtility::configurePlugin(
'SfBooks',
'Book',
[
BookController::class => 'list, show, search',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfBooks',
'Author',
[
AuthorController::class => 'list, show, search',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfBooks',
'Category',
[
CategoryController::class => 'list, show',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfBooks',
'Series',
[
SeriesController::class => 'list, show',
],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'SfBooks',
'Search',
[
SearchController::class => 'search, startSearch',
BookController::class => 'search',
AuthorController::class => 'search',
],
[
SearchController::class => 'search, startSearch',
BookController::class => 'search',
AuthorController::class => 'search',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
/**
* Register Title Provider
*/
ExtensionManagementUtility::addTypoScriptSetup(trim('
config.pageTitleProviders {
books {
provider = Evoweb\SfBooks\TitleTagProvider\TitleTagProvider
before = seo
after = altPageTitle
}
}
'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][IsbnEvaluation::class] = '';
})();