Another question, is this plugin compatible with Radiantweb's ProEvents Plugin?
https://octobercms.com/plugin/radiantweb-proevents
I've included the siteSearchInclude component but it does not show the information in the results page.
Last updated
Hi
The plugin brings no out-of-the-box support for RadiantWeb.ProEvents. But you can easily add it yourself by creating a custom search provider in your own plugin's boot method:
https://github.com/OFFLINE-GmbH/oc-site-search-plugin/#add-support-for-custom-plugin-contents
You can enable and disable search providers in october's backend settings. There you could disable everything but CMS pages. Be aware that support for CMS pages is still very experimental and can lead to unexpected results if you have dynamic content on it.
Hello, just an additional question: I have a date column in my database that I would like to display in the search results as well. How do I set it under this code? return [ 'title' => $item->title, 'text' => $item->content, 'url' => '/document/' . $item->slug, 'thumb' => $item->images->first(), // Instance of System\Models\File 'relevance' => $relevance, // higher relevance results in a higher // position in the results listing // 'meta' => 'data', // optional, any other information you want // to associate with this result // 'model' => $item, // optional, pass along the original model ];
Last updated
1-5 of 5