forked from in2code-de/in2studyfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
76 lines (63 loc) · 3.06 KB
/
Copy pathext_localconf.php
File metadata and controls
76 lines (63 loc) · 3.06 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$controller = \In2code\In2studyfinder\Controller\StudyCourseController::class;
$extensionName = 'In2studyfinder';
if (\In2code\In2studyfinder\Utility\VersionUtility::isTypo3MajorVersionBelow(10)) {
$controller = 'StudyCourse';
$extensionName = 'In2code.in2studyfinder';
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extensionName,
'Pi1',
[$controller => 'filter'],
[$controller => 'filter']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extensionName,
'FastSearch',
[$controller => 'fastSearch'],
[]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extensionName,
'Pi2',
[$controller => 'detail'],
[]
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['studyCourseSlug']
= \In2code\In2studyfinder\Updates\StudyCourseSlugUpdater::class;
/*
Adds the Language Files from in2studyfinder_extend
*/
if (In2code\In2studyfinder\Utility\ExtensionUtility::isIn2studycoursesExtendLoaded()) {
// Backend
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:in2studyfinder/Resources/Private/Language/locallang_db.xlf'][] =
'EXT:in2studyfinder_extend/Resources/Private/Language/locallang_db.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:in2studyfinder/Resources/Private/Language/de.locallang_db.xlf'][] =
'EXT:in2studyfinder_extend/Resources/Private/Language/de.locallang_db.xlf';
// Frontend
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:in2studyfinder/Resources/Private/Language/locallang.xlf'][] =
'EXT:in2studyfinder_extend/Resources/Private/Language/locallang.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:in2studyfinder/Resources/Private/Language/de.locallang.xlf'][] =
'EXT:in2studyfinder_extend/Resources/Private/Language/de.locallang.xlf';
}
/**
* Hook to show PluginInformation under a tt_content element in page module of type in2studyfinder
*/
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['in2studyfinder']
= \In2code\In2studyfinder\Hooks\PluginPreview::class;
if (\In2code\In2studyfinder\Utility\ConfigurationUtility::isCachingEnabled()) {
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder'] = [];
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder']['frontend'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder']['frontend'] =
\TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class;
}
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder']['groups'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['in2studyfinder']['groups'] =
['pages'];
}
}