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.

Data Model Questions

Combining Searchable Fields in ModelAdmin


Reply

2 Posts   1094 Views

Avatar
pingu

11 November 2010 at 2:54pm Community Member, 75 Posts

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

19 November 2010 at 10:31pm Forum Moderator, 1796 Posts

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