I've downloaded Song module. And there is an implementation of adding custom field to any Module.
Exact example from Song:
custom field label_company is added to Song module.
When going to Edit page we can choose Account by clicking Select button.
And then after successful Save, we can see the name of Account that we have just chosen on edit page.
Still, there is a bug on a Detail page, link that leads us to Account is broken because record is empty.
Well, the question.
I created a module, indicated in manifest.php:
...
'custom_fields' => array(
array('name' => 'account_name',
'label' => 'Account:',
'type' => 'relate',
'max_size' => 255,
'require_option' => 'optional',
'default_value' => '',
'ext1'=>'name',//Field to get from To Module (Bugs)
'ext2'=>'Accounts',//Relate To Module
'ext3'=>'',
'audited' => 0,
'module'=>'MyModule', //Relate From Module
),
),
);
I must say, that after successful installation of my module I tried to test this custom field.
I've indicated account name, pressed Save, and nothing was represented in the field Account, while corresponding record has been inserted in MyModule_cstm.
What is wrong?


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks