friendsofvictoire/search-widget
A Symfony bundle that adds a search widget to the Victoire CMS, letting editors drop a configurable site search form into any business page. Ships Twig templates and widget configuration hooks you can wire to your own search backend or index.
This is a niche Victoire DCMS widget bundle (0 stars, 0 dependents) — treat it as source-first: clone/read the code before relying on any docs, because there almost certainly aren't any.
composer require friendsofvictoire/search-widget — confirm the actual package name in its composer.json), then register the bundle in app/AppKernel.php (Symfony 2/3) or config/bundles.php.composer.json require block before anything else.Entity/WidgetSearch.php (or Widget/) — the widget's configurable properties.Form/WidgetSearchType.php — which properties editors can set in the visual editor.Resources/views/ — the Twig templates that actually render the form/results.Resources/config/services.yml and any routing.yml — where the search endpoint lives./search?q=.... Read the term with $request->query->get('q'), guard against empty/blank queries, then run the index query. If the bundle doesn't ship a controller for paginated results, write one and point the widget's form at it.q in the query string — this is the single most common customization you'll make.WidgetSearchType, and usage in the Twig template. Keep it that simple.Resources/views/WidgetSearch/*.twig into your app's template override path and edit there, so composer update doesn't wipe your markup.services.yml.composer.json constraints and run composer why-not before upgrading anything; be prepared to fork and patch./search route may get shadowed or shadow a page. Register the search route with higher priority and test against a real published page.<em> highlights or snippets, escape the surrounding text but carefully allow the highlight tags — naive |raw on user-supplied snippets is an XSS vector. Escape first, then apply highlights, or whitelist tags.fos:elastica:populate or equivalent); otherwise results silently miss new fields._locale, otherwise you'll get mixed-language results.?q=test. If that works but the widget doesn't, the problem is in the form action/template; if the route fails, it's backend/config.composer.json ("friendsofvictoire/search-widget": "x.y.*"). Given the package's low activity, an unexpected minor bump is more likely to break than fix.How can I help you explore Laravel packages today?