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

$searchable_fields in SilverStripe 2.4.1


Go to End


2 Posts   959 Views

Avatar
cuSSter

Community Member, 56 Posts

16 September 2010 at 2:12am

Edited: 16/09/2010 2:13am

Hi,

Just upgraded from 2.3.6 to 2.4.1 and one of my $searchable_fields does not seem to work properly anymore. It's on a 2nd level relationship. Example:

$searchable_fields = array( '1stDegree.2ndDegree.ID' => array( 'title' => 'Name' ) );

What seems to be the problem with this?

Avatar
swaiba

Forum Moderator, 1899 Posts

16 September 2010 at 2:30am

I'd suggest replacing

array( 'title' => 'Name' )

with just...

 'Name' 

To help any more it might be easier if you provided the actual error message.