SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

amdad
amdad

Is SiteSearch support Translate plugin? Especially when force linking (lang prefixes) is ON?

OFFLINE
OFFLINE

Hi

Currently there is no support for the translate plugin available.

I cannot say exactly how it will behave. I guess it just ignores translated contents. You'll only be able so search the contents in your main language.

amdad
amdad

I cannot even configure plugin to working with lang prefixed links. So it doesn't work at all when language Switcher change links.

BTW. Thanks for SiteSearch!

Last updated

OFFLINE
OFFLINE

I've created a new issue for this feature. I'll try to implement it in one of the future releases.

You can watch the issue to stay up to date.

https://github.com/OFFLINE-GmbH/oc-site-search-plugin/issues/5

amdad
amdad

I do, very thanks!

OFFLINE
OFFLINE

Support for RainLab.Translate has been added in version 1.1.0 released today.

Check it out!

Crazymodder
Crazymodder

Wow thanks OFFLINE I will test it out:)

c-y-m19830
c-y-m19830

There might be an issue with the translate plugin for Rainlab pages, when searching.
Everything is correct for the results from the rainlab blog pages, but not for the rainlab pages.
Always the lang code is added in the search results for the Rainlab pages.
If you klick the link then and type another search, it ends up in error, as the url looks would like this:
mysite.com/en/en/about
instead of
mysite.com/en/about
For the blog pages the search result is returned correctly:
mysite.com/en/blog/default

I have turned off all translate extended parameters ...
Any idea?

Last updated

OFFLINE
OFFLINE

Have you customized the search results partial?

What is the output of

dd($langPrefix, $page->viewBag['url']);

when you add it right before ths return statement

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

1-9 of 9