I've found how to create a new data type and it works great in the module builder for new modules but if you try to add that data type to an existing module in Studio it doesn't work the same. There are a couple of associated fields that are set to be studio=hidden but they show up still on the Studio side. I'm mimicking the TemplateParent data type which sets the parent_type field to hidden.
I've added the hidden fields to the exclusions array in modules/DynamicFields/DynamicField.php:
Which saves it the to the database without the _c extension. This works great. Everything seems fine except for the studio keeps showing these hidden fields. Well, deleting the main field doesn't delete the related fields correctly in Studio but it does in ModuleBuilder.PHP Code:$exclusions = array('parent_type', 'parent_id', 'currency_id', 'parent_name','filename','file_ext','file_mime_type');


LinkBack URL
About LinkBacks





Reply With Quote

Bookmarks