SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

wertykid
wertykid

Hello,

How do I show CMS Page results only at my search results page?

Last updated

wertykid
wertykid

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

OFFLINE
OFFLINE

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.

wertykid
wertykid

Hello, thanks for the prompt reply. I managed to get it working, cheers!

wertykid
wertykid

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