forked from proudnerds-typo3/irfaq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
43 lines (27 loc) · 1.73 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_irfaq_q=1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_irfaq_cat=1');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('options.saveDocNew.tx_irfaq_expert=1');
//listing FAQ in Web->Page view
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_irfaq_q'][0] = [
'fList' => 'q,a,q_from,expert',
'icon' => true
];
// Core DataHandler hooks for managing related entries
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['irfaq']
= 'EXT:irfaq/Classes/System/DataHandling/RelatedQuestionsDataHandler.php'
. ':Netcreators\Irfaq\System\Backend\DataHandling\RelatedQuestionsDataHandler';
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['irfaq']
= 'EXT:irfaq/Classes/System/DataHandling/RelatedQuestionsDataHandler.php'
. ':Netcreators\Irfaq\System\Backend\DataHandling\RelatedQuestionsDataHandler';
// Hook to comments for comments closing
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['comments']['closeCommentsAfter'][$_EXTKEY]
= 'EXT:irfaq/Classes/Hooks/Comments/CommentsCloseTimeHook.php'
. ':Netcreators\Irfaq\Hooks\Comments\CloseCommentsAfterHook->irfaqHook';
// Backend Page Module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['irfaq_pi1'][]
= 'EXT:irfaq/Classes/System/Backend/PageModule/ExtensionSummaryProvider.php'
. ':Netcreators\Irfaq\System\Backend\PageModule\ExtensionSummaryProvider->getExtensionSummary';