-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
43 lines (40 loc) · 1.97 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
<?php
defined('TYPO3_MODE') || die('Access denied.');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'module.tx_supportchatswitch_system_supportchatswitchsupportchatswitch {
view {
templateRootPaths {
0 = EXT:supportchat-switch/Resources/Private/Backend/Templates/
1 = {$module.tx_supportchatswitch.view.templateRootPath}
}
partialRootPaths {
0 = EXT:supportchat-switch/Resources/Private/Backend/Partials/
1 = {$module.tx_supportchatswitch.view.partialRootPath}
}
layoutRootPaths {
0 = EXT:supportchat-switch/Resources/Private/Backend/Layouts/
1 = {$module.tx_supportchatswitch.view.layoutRootPath}
}
}
persistence < plugin.tx_supportchatswitch.persistence
}'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants(
'module.tx_supportchatswitch_system_supportchatswitchsupportchatswitch {
view {
# cat=module.tx_supportchatswitch/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:supportchat-switch/Resources/Private/Backend/Templates/
# cat=module.tx_supportchatswitch/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:supportchat-switch/Resources/Private/Backend/Partials/
# cat=module.tx_supportchatswitch/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:supportchat-switch/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_supportchatswitch//a; type=string; label=Default storage PID
storagePid =
}
}'
);
/* Frontend Ajax call- Get current status of chat */
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['supportchatswitch_status']
= \Ubl\SupportchatSwitch\Controller\AjaxFrontendListener::class . '::getCurrentStatus';