Jump to content


Photo

Custom Field changes not happening

custom field database

  • Please log in to reply
1 reply to this topic

#1 xxxDKPROxxx

xxxDKPROxxx

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 17 August 2015 - 10:10 AM

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

,



#2 ifimais

ifimais

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 24 November 2015 - 05:39 PM

hi

I'm also having the same problem.. :/  How did you solve it?

 

thank you,







Also tagged with one or more of these keywords: custom, field, database

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users