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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

CMS - dataojbect seach - defining dropdown

Go to End



Community Member, 244 Posts

22 September 2011 at 8:43pm

in the CMS, i'm trying to define searchable field for my dataobject:

static $searchable_fields = array(
'Status' => array(
'title' => 'Status..',
'field' => 'DropdownField',
'filter' => 'ExactMatchfilter')

however, i want some preset options in my drop down box - such as 'paid' 'cancelled' 'shipped' etc..
any ideas?