-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
50 lines (42 loc) · 1.18 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
<?php
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WapplerSystems\WsGuestbook\Controller\GuestbookController;
ExtensionUtility::configurePlugin(
'ws_guestbook',
'List',
[
GuestbookController::class => 'list',
],
[
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
ExtensionUtility::configurePlugin(
'ws_guestbook',
'Form',
[
GuestbookController::class => 'new,done,decline,confirm,entryNotFound',
],
[
GuestbookController::class => 'new,done,decline,confirm,entryNotFound',
],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['ws_guestbook'] = \WapplerSystems\WsGuestbook\Hooks\PageLayoutView::class;
ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_form {
settings {
yamlConfigurations {
90 = EXT:ws_guestbook/Configuration/Yaml/FormSetup.yaml
}
}
}
plugin.tx_form {
settings {
yamlConfigurations {
90 = EXT:ws_guestbook/Configuration/Yaml/FormSetup.yaml
}
}
}'
);