/
ext_localconf.php
executable file
·60 lines (54 loc) · 2.93 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
<?php
defined('TYPO3_MODE') || die();
// Scheduler Tasks
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Hostinghelden\HostingheldenTemplate\Task\DeleteCriticalTask'] = array(
'extension' => $_EXTKEY,
'title' => 'Delete Critical CSS Files',
'description' => 'This Task deletes all critical css files.',
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Hostinghelden\HostingheldenTemplate\Task\NewsletterActivationTask'] = array(
'extension' => $_EXTKEY,
'title' => 'Create Newsletter Opt-In Email',
'description' => 'Create Email for Newsletter OptIn for all hidden tt_address Records!!! every hidden record with email will get an email',
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Hostinghelden\HostingheldenTemplate\Task\DisableNewsletterAddressesTask'] = array(
'extension' => $_EXTKEY,
'title' => 'Disable all Newsletter Subscriptions',
'description' => 'This Task sets all tt_records to hidden, which will disable the newsletter for that address, the addressen which dont get activated have to be deleted manually',
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TsConfig/Page/ContentElement/All.tsconfig">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts.tsconfig">');
/***************
* Register custom EXT:form configuration
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
module.tx_form {
settings {
yamlConfigurations {
120 = EXT:hostinghelden_template/Configuration/Form/Setup.yaml
}
}
}
plugin.tx_form {
settings {
yamlConfigurations {
120 = EXT:hostinghelden_template/Configuration/Form/Setup.yaml
}
}
}
'));
//
// Register EXT:Form Hooks
// Set unique hash
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1000] =
\Hostinghelden\HostingheldenTemplate\Domain\Model\Renderable\SetUniqueHash::class;
// Set the current BaseUrl
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][2000] =
\Hostinghelden\HostingheldenTemplate\Domain\Model\Renderable\SetBaseUrl::class;
// Get post parameter
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterBuildingFinished'][3000] =
\Hostinghelden\HostingheldenTemplate\Domain\Model\Renderable\GetPostParameter::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Frontend\Page\PageGenerator']['generateMetaTags']['canonical'] =
\Hostinghelden\HostingheldenTemplate\Canonical\CanonicalGenerator::class . '->generate';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Frontend\Page\PageGenerator']['generateMetaTags']['metatag'] =
\Hostinghelden\HostingheldenTemplate\MetaTag\MetaTagGenerator::class . '->generate';