This module allows to implement a simple search engine for a website.
All searches are directed to a single endpoint: /search/ which is registered in the SiteMap if you use silverstripe/googlesitemaps
.
You can call $SimpleSearchForm
in your layout to output a form or create your own : simple point to /search/?q=YourQueryHere.
The search controller will search existing pages and DataObjects available in the sitemap.
Rendering the layout is up to you, but sample templates based on Bootstrap 5 are available in the /templates folder. We use the default
Page_results.ss
layout.
By default, this module will also search any DataObject registered in the sitemap.
GoogleSitemap::register_dataobject(BlogTag::class);
GoogleSitemap::register_dataobject(BlogCategory::class);
Will by default enable search on these objects.
Tested with 4.6 but should work on any ^4 projects
LeKoala - [email protected]
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem