Download the PHP package werkbot/werkbot-search without Composer
On this page you can find all versions of the php package werkbot/werkbot-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download werkbot/werkbot-search
More information about werkbot/werkbot-search
Files in werkbot/werkbot-search
Package werkbot-search
Short Description Provides search functionality with TNTSearch
License MIT
Homepage https://github.com/werkbot/silverstripe-module-search
Informations about the package werkbot-search
Silverstripe TNTSearch
A silverstripe search module that utilizes TNTSearch to index content.
Installation
Requirements
Setup
Add the following extensions to Page
You will need to run dev/build
Define getIndexQuery on Page
The Page::class
will need to have a function getIndexQuery
defined. Here is an example for Page:
This is a simple query that is used by the indexer to index your content.
This function can be customized however you like and also can be added to DataObjects.
Data Extensions
Note that if the getIndexQuery
method is defined in a DataExtension, the SearchableExtension
must be added before the extension that adds the method. Otherwise the method will return the default: false.
External Libraries
By default, the templates used here use classes provided by external css libraries. We suggest installing both for the best experience:
- Werkbot Framewerk (CSS Libarary)
- Font Awesome 6 (Icon classes)
Usage
- Usage documentation
All versions of werkbot-search with dependencies
silverstripe/cms Version ^4 || ^5
silverstripe/framework Version ^4 || ^5
teamtnt/tntsearch Version v4.2.1
ext-sqlite3 Version *
symbiote/silverstripe-queuedjobs Version ^4.12 || ^5.1