Hi guys,
I am developing a custom module and have become stumped. I have made changes to the main module file (modules\artists\models\Artist.php). Originally I had an 'artist type' field as text but it now needs to be a dropdown.
I have changed the type to the below code in the rules:
array('contact_type', 'default', 'value' => 'Direct'),
I have also added this in the relations section:
'contact_type' => array(RedBeanModel::HAS_ONE, 'OwnedCustomField', RedBeanModel::OWNED)
This is in the elements section:
'contact_type' => 'DropDown',
This is in the customFields array:
'contact_type' => 'ArtistTypePickList',
The custom picklist fields have been declared in ArtistsDefaultDataMaker and appear in the database fine but no matter what I do, whether I clear cache, Update custom meta in the developer menu or use "zurmoc.bat UpdateSchema Super" in command line I cannot get this field to update to a dropdown.
Also, a second issue, during development I saved a layout in the Designer which seems now to overwrite everything no matter what I change in the ArtistEditAndDetailsView.php file. Is this by design or is this the same fault as above.
Please someone help me!
Thanks,
Thom
,