SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

Invato
Invato

Hello there :-)

I've got a question regarding the search in Static Pages. We use a lot of custom fields/repeater groups in our websites to create flexible pages. There are also several image fields (mediafinder), and the value of these fields are also included in the result excerpts, which looks kind of silly.

Is there a way to exclude these fields or FormWidgets from the search or excerpts?

Thanks!

OFFLINE
OFFLINE

No, you currently cannot exclude certain fields by default.

I suggest you disable the default search provider for Static Pages and implement your own based on this, that excludes the fields you don't want to search:

https://github.com/OFFLINE-GmbH/oc-site-search-plugin/blob/develop/classes/providers/RainlabPagesResultsProvider.php#L41

Invato
Invato

Ah that's unfortunate, but I will look into implementing our own provider. Thanks for the reply!

1-3 of 3