This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
72 lines (59 loc) · 4.45 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
61
62
63
64
65
66
67
68
69
70
71
72
<?php
if (!defined ('TYPO3_MODE')) die('Access denied.');
if (version_compare(TYPO3_version, '6.3', '>')) {
(class_exists('t3lib_extMgm', FALSE)) ? TRUE : class_alias('\TYPO3\CMS\Core\Utility\ExtensionManagementUtility', 't3lib_extMgm');
(class_exists('t3lib_div', FALSE)) ? TRUE : class_alias('TYPO3\CMS\Core\Utility\GeneralUtility', 't3lib_div');
}
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.toctoc_comments_pi1.php', '_pi1', 'list_type', 1);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.toctoc_comments_felogin_pi1.php', '_pi1', 'list_type', 1);
t3lib_extMgm::addLLrefForTCAdescr('xEXT_toctoc_comments', 'EXT:toctoc_comments/pi1/locallang_csh.xml');
t3lib_extMgm::addLLrefForTCAdescr('tt_content.pi_flexform.toctoc_comments_pi1.list', 'EXT:toctoc_comments/pi1/locallang_csh.xml');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_toctoc_comments_ipbl_local=1
');
// TCEmain hook to remove comments if referenced item is removed
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['toctoc_comments'] = 'EXT:toctoc_comments/class.user_toctoc_comments_tcemain.php:user_toctoc_comments_tcemain';
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['toctoc_comments_pi1'][] = 'EXT:toctoc_comments/class.user_toctoc_comments_cms_layout.php:user_toctoc_comments_cms_layout->getExtensionSummary';
// Add a hook to the login form
if (t3lib_extMgm::isLoaded('rsaauth')) {
if (version_compare(TYPO3_version, '6.1', '>')) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['toctoc_comments']['loginFormOnSubmitFuncs']['rsaauth'] = 'TYPO3\\CMS\\Rsaauth\\Hook\\FrontendLoginHook->loginFormHook';
} elseif (version_compare(TYPO3_version, '4.9', '>')) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['toctoc_comments']['loginFormOnSubmitFuncs']['rsaauth'] = 'EXT:rsaauth/hooks/class.tx_rsaauth_feloginhook.php:TYPO3\\CMS\\Rsaauth\\Hook\\FrontendLoginHook->loginFormHook';
} else {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['toctoc_comments']['loginFormOnSubmitFuncs']['rsaauth'] = 'EXT:rsaauth/hooks/class.tx_rsaauth_feloginhook.php:tx_rsaauth_feloginhook->loginFormHook';
}
}
// eID
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['toctoc_comments'] = 'EXT:toctoc_comments/class.toctoc_comments_eID.php';
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['toctoc_comments_ajax'] = 'EXT:toctoc_comments/class.toctoc_comments_ajax.php';
// Extra markers hook for tt_news
if (t3lib_extMgm::isLoaded('tt_news')) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraItemMarkerHook'][$_EXTKEY] = 'EXT:toctoc_comments/class.user_toctoc_comments_ttnews.php:&user_toctoc_comments_ttnews';
}
// Register cache 'toctoc_comments_cache' just if TYPO3 4.3-4.5
if (version_compare(TYPO3_version, '4.6', '<')) {
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache'] = array();
}
// Define string frontend as default frontend, this must be set with TYPO3 4.5 and below
// and overrides the default variable frontend of 4.6
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['frontend'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['frontend'] = 't3lib_cache_frontend_StringFrontend';
}
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['backend'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['backend'] = 't3lib_cache_backend_DbBackend';
}
// Define data and tags table for 4.5 and below (obsolete in 4.6)
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options'] = array();
}
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options']['cacheTable'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options']['cacheTable'] = 'tx_toctoc_comments_cache';
}
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options']['tagsTable'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['toctoc_comments_cache']['options']['tagsTable'] = 'tx_toctoc_comments_cache_tags';
}
}
?>