Hi all,
I’m trying to split the history panel into two separate sub-panels, one for calls and one for emails. I’m testing this out using the contacts module. So far what I’ve done is I’ve edited //modules/Contacts/metadata/subpaneldefs.php and added the following inside the subpanel_setup array:
'calls' => array(
'order' => 11,
'module' => 'Calls',
'sort_order' => 'desc',
'sort_by' => 'date_entered',
'subpanel_name' => 'default',
'get_subpanel_data' => 'calls',
'title_key' => 'CUSTOM CALLS',
),
'emails' => array(
'order' => 12,
'module' => 'Emails',
'sort_order' => 'desc',
'sort_by' => 'date_entered',
'subpanel_name' => 'ForHistory',
'title_key' => 'CUSTOM EMAILS',
'type' => 'collection',
'collection_list' => array(
'emails' => array(
'module' => 'Emails',
'subpanel_name' => 'ForHistory',
'get_subpanel_data' => 'emails',
),
'linkedemails' => array(
'module' => 'Emails',
'subpanel_name' => 'ForUnlinkedEmailHistory',
'get_subpanel_data' => 'function:get_unlinked_email_query',
'generate_select' => true,
'function_parameters' => array('return_as_array' => 'true'),
),
),
),
However now what I want to do is for the emails subpanel, display who sent the email and who received the email. Does anyone know how to do this?
Thanks