SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

kawin64636
kawin64636

I created a custom plugin called ResearchResources and I want it to be included in the search. But when I try to search this is the error I see, I can't seem to solve the issue.

Class 'OFFLINE\SiteSearch\Classes\Providers\ResearchResourcesProvider' not found

  • I have already created a custom provider in the specified path.

But still I cannot create and add the an instance of this object "new ResearchResourcesProvider()" to the SearchService class

`` protected function nativeResultsProviders() { return [ ... new ResearchResourcesProvider() ]; }

``

Last updated

OFFLINE
OFFLINE

You should not extend the plugin by editing its code or even placing a class in the plugins/offline directory.

Check out the docs on this topic: https://github.com/OFFLINE-GmbH/oc-site-search-plugin#simple-method

You should register your results provider class in your own plugin, and also put the PHP file there.

kawin64636
kawin64636

Thank you so much sir!

1-3 of 3