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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

CMS - dataojbect seach - defining dropdown


Reply


338 Views

Avatar
Futureweb

Community Member, 233 Posts

22 September 2011 at 8:43pm

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

static $searchable_fields = array(
'ID','firstName','lastName',
'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?

cheers