-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
56 lines (50 loc) · 1.85 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
<?php
declare(strict_types=1);
/*
* This file is part of the package friendsoftypo3/theme-portfolio.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use FriendsOfTYPO3\ThemePortfolio\Controller\ProjectController;
use FriendsOfTYPO3\ThemePortfolio\Hooks\PageRenderer\CustomStyleHook;
use FriendsOfTYPO3\ThemePortfolio\Hooks\PageRenderer\WebfontHook;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
// Register custom EXT:form configuration
if (ExtensionManagementUtility::isLoaded('form')) {
ExtensionManagementUtility::addTypoScriptSetup(
trim('
module.tx_form {
settings {
yamlConfigurations {
110 = EXT:theme_portfolio/Configuration/Form/Setup.yaml
}
}
}
plugin.tx_form {
settings {
yamlConfigurations {
110 = EXT:theme_portfolio/Configuration/Form/Setup.yaml
}
}
}
')
);
}
ExtensionUtility::configurePlugin(
'ThemePortfolio',
'Projects',
[
ProjectController::class => ['list', 'show'],
],
[
ProjectController::class => ['list', 'show'],
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][CustomStyleHook::class]
= CustomStyleHook::class . '->execute';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][WebfontHook::class]
= WebfontHook::class . '->execute';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['portfolio'][] = 'FriendsOfTYPO3\ThemePortfolio\\ViewHelpers';