Hi RLJB
Using Module Builder you can create a new module, this you already know perfectly.
Using Studio you can modify the existing modules (built in modules and custom modules), in an upgrade safe way the Studio create new fields into <table_name>_cstm table and the fields has the suffix '_c' to indicate this is a custom field. That is what is happening in your system.
Let me understand your needs:
You want to automatically copy the field phone_mobile from Contact to Performance module when selecting a Contact from the Relate field into Performance module.
Right?
If this is your needs so do the following:
1. Edit the file cache/modules/Contacts/Contactvardefs.php
2. Copy the phone_mobile definition from this file to modules/Performance/vardefs.php
3. Copy the language entry for phone_mobile in the cache/modules/Contacts/language/<your_language>.lang.php to modules/Performance/language/<your_language>.lang.php
4. Go to Admin -> Repair -> Rebuild Extension / Repair Database
5. Edit the modules/Performance/metadata/editviewdefs.php and add this new definition at the end of the relate field to Contacts:
PHP Code:
'displayParams' =>
array (
'field_to_name_array' => array(
'id' => '<id_field_of_contact>',
'name' => '<name_field_of_contact>',
'phone_mobile' => 'phone_mobile',
),
'additionalFields' => array(
'phone_mobile' => 'phone_mobile',
),
),
Replace the <id_field_of_contact> and <name_field_of_contact> by the properly values.
Regards
Bookmarks