-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
38 lines (30 loc) · 1.28 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
<?php
declare(strict_types=1);
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use Slub\LisztCommon\Controller\SearchController;
defined('TYPO3') or die();
// configure Search Listing Plugin, disable caching so that the search terms entered are updated and not the entire search-page was cached in page cache
ExtensionUtility::configurePlugin(
'LisztCommon',
'SearchListing',
[ SearchController::class => 'index' ],
[ SearchController::class => 'index' ]
);
// configure Search Listing Plugin, disable caching so that the search terms entered are updated and not the entire search-page was cached in page cache
ExtensionUtility::configurePlugin(
'LisztCommon',
'SearchBar',
[ SearchController::class => 'searchBar' ],
[ SearchController::class => 'searchBar' ],
);
ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:liszt_common/Configuration/TsConfig/page.tsconfig">'
);
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('iconpack')) {
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\Quellenform\Iconpack\IconpackRegistry::class
)->registerIconpack(
'EXT:liszt_common/Configuration/Iconpack/LisztSearchResultsIconpack.yaml',
);
}