Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multi language CMS - Searchbox not working - SS 2.4.2


Go to End


1107 Views

Avatar
borriej

Community Member, 267 Posts

9 November 2010 at 4:53am

Hi All!

I got multi languages installed and enabled searching in the _config:

// Enable multi language
Translatable::enable();

// Set the site locale
i18n::set_locale('en_US'); 


// ENABLE SEARCH BOX
FulltextSearchable::enable();

Created the Page_result.ss in the layout folder..

Added $Form and $Search inside the page.ss

But when i use my searchbox... For example 'Text' ... Search

I only see the Title 'Search results'
and beneath that, I see the Content of Page.ss

So what is going wrong here?

Is it because of the multiple languages?