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.

Data Model Questions /

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

Combining Searchable Fields in ModelAdmin


Go to End


2 Posts   1735 Views

Avatar
pingu

Community Member, 75 Posts

11 November 2010 at 2:54pm

I'm just wondering if it's possible to combine fields to form a searchable field?

For example, if I had languages "Mother Tongue" and "Secondary Languages", would it be possible for me to do one keyword search "Language" that would search both these fields in ModelAdmin?

Avatar
swaiba

Forum Moderator, 1899 Posts

19 November 2010 at 10:31pm

I'd say yes... Have a look at the following that manipulates the search results... I think this will help...

http://www.silverstripe.org/general-questions/show/5768?start=16#post290362