-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
45 lines (38 loc) · 2.02 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// register Extbase plugin
/* @see https://docs.typo3.org/typo3cms/ExtbaseFluidBook/4-FirstExtension/7-configuring-the-plugin.html */
// [Example-5]
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'EHAERER.' . $_EXTKEY, 'Ehbs', array(
'Abstract' => 'plugin, render',
),
// non-cacheable actions
array(
'Abstract' => 'render',
)
);
// register the class for eid Extbase dispatcher
// [Example-6]
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ehBootstrap'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Eid/ExtbaseDispatcher.php';
if (TYPO3_MODE === 'BE') {
// Register for hook to show preview of tt_content element of CType="yourextensionkey_newcontentelement" in page module
// renders the backend preview for the extbase plugin and for the content element
// [Example-4]
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['eh_bs_01'] = \EHAERER\EhBootstrap\Hooks\PageLayoutView\NewContentElementPreviewRenderer::class;
// register a default scheduler task which is not command controller based
/* @see https://docs.typo3.org/typo3cms/extensions/scheduler/DevelopersGuide/CreatingTasks/Index.html */
// [Example-10]
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\EHAERER\EhBootstrap\Task\Example::class] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:example_task_h',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:example_task_t',
'additionalFields' => \EHAERER\EhBootstrap\Task\ExampleTaskFields::class
);
// register a command controller task
/* @see https://docs.typo3.org/typo3cms/ExtbaseFluidBook/10-Outlook/3-Command-controllers.html */
// [Example-11]
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \EHAERER\EhBootstrap\Command\ExampleCommandController::class;
}