Firstly, I am only a couple of days into Silverstripe and OOP, having come from a purely procedural background and thrown in the deep end on a project I've been assigned to so please forgive me if I'm overlooking something very basic and/or fundamental. Also in any responses, please assume you are speaking to a 3yr old. Ha.
Anyway.
I have managed to add a drop down labelled "country" to my customer search in the CMS by simply adding :
Member::$searchable_fields = array(
'ID' => array(
'field' => 'NumericField',
'filter' => 'ExactMatchFilter'
),
'FirstName',
'Surname',
'Email',
'Client',
'City',
'Country' => array(
'field' => 'DropdownField'
)
);
I need this to take the form of CountryDropdownField.
Is this possible and how do I go about this?
Many thanks in advance.