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.

General Questions /

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

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

Multi language CMS - Searchbox not working - SS 2.4.2


Reply


877 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?