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   1128 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, 1805 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