How do I show CMS Page results only at my search results page?
Another question, is this plugin compatible with Radiantweb's ProEvents Plugin?
I've included the siteSearchInclude component but it does not show the information in the results page.
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:
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, thanks for the prompt reply. I managed to get it working, cheers!
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 ];
1-5 of 5