sunnysideup/site-wide-search

Search your entire silverstripe site!

Installs: 372

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 3

Type:silverstripe-vendormodule

4.0.0 2020-12-23 18:31 UTC

This package is auto-updated.

Last update: 2022-09-20 10:03:34 UTC


README

Use one of these two links to see if it works for you:

  • dev/tasks/Sunnysideup-SiteWideSearch-Tasks-SiteWideSearch
  • admin/find/

If it does then you can build your own presentation layer using the API:

//use statements need to be added !

$myLinks = Injector::inst()->get(SearchApi::class)
    ->setBaseClass(DataObject::class)
    ->setExcludedClasses([MyMemberDetails::class])
    ->setExcludedFields(['SecretStuff'])
    ->setIsQuickSearch(false)
    ->setWords(['MyNiceWord', 'OtherWord'])
    ->getLinks();