Add Index Listener

This commit is contained in:
Jürgen Mummert
2025-12-22 21:43:43 +01:00
parent ac1db3ff9a
commit 01949362ce
3 changed files with 22 additions and 89 deletions
+1 -8
View File
@@ -2,7 +2,6 @@
use MummertMedia\ContaoMeilisearchBundle\EventListener\IndexPageListener;
use MummertMedia\ContaoMeilisearchBundle\EventListener\MeilisearchPageMarkerListener;
use MummertMedia\ContaoMeilisearchBundle\EventListener\MeilisearchEventContextListener;
$GLOBALS['TL_HOOKS']['outputFrontendTemplate'][] = [
@@ -15,11 +14,5 @@ $GLOBALS['TL_HOOKS']['indexPage'][] = [
'onIndexPage'
];
$GLOBALS['TL_HOOKS']['parseFrontendTemplate'][] = [
MeilisearchEventContextListener::class,
'onParseFrontendTemplate',
];
if (!isset($GLOBALS['MEILISEARCH_MARKERS'])) {
$GLOBALS['MEILISEARCH_MARKERS'] = [];
}