This commit is contained in:
Jürgen Mummert
2025-12-27 17:03:20 +01:00
parent 973f3f5b3e
commit 2c53b7862e
6 changed files with 199 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php
namespace MummertMedia\ContaoMeilisearchBundle\Controller\FrontendModule;
use Contao\FrontendModule;
class MeilisearchSearchController extends FrontendModule
{
/**
* Template
*/
protected $strTemplate = 'mod_meilisearch_search';
/**
* Compile the frontend module
*/
protected function compile(): void
{
// Fallback, falls das Feld leer ist
$limit = (int) ($this->meiliLimit ?: 50);
$this->Template->meiliLimit = $limit;
}
}