forked from georgringer/news_filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
22 lines (16 loc) · 1.14 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
<?php
if (!defined('TYPO3')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Domain/Repository/AbstractDemandedRepository.php']['findDemanded']['news_filter']
= \GeorgRinger\NewsFilter\Hooks\Repository::class . '->modify';
$vars = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('tx_news_pi1');
if (isset($vars['search']) && is_array($vars['search'])) {
foreach (['Pi1', 'NewsListSticky', 'NewsSelectedList'] as $pluginName)
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['News']['plugins'][$pluginName]['controllers'][\GeorgRinger\News\Controller\NewsController::class]['nonCacheableActions'][] = 'list';
}
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['classes']['Domain/Repository/CategoryRepository'][] = 'news_filter';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing']['news_filter']
= \GeorgRinger\NewsFilter\Hooks\FlexFormHook::class;
$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Controller/NewsController.php']['createDemandObjectFromSettings']['news_filter']
= \GeorgRinger\NewsFilter\Hooks\EnrichDemandObject::class . '->run';