To do this, you need to create a custom function to retrieve data for your subpanel.
When implementing QMS subpanel in modules / parent _module / metadata / subpaneldefs.php
'qms' => array(
'order' => 40,
'module' => 'QMS',
'sort_order' => 'desc',
'sort_by' => 'date_closed',
'get_subpanel_data' => 'function:get_qms_contacts_subpanel',
...
),
get_subpanel_data, .
, QMS , get_qms_contacts_subpanel
/Extension//Ext/Utils/some_file_name.php
, .
<?php
function get_qms_contacts_subpanel()
{
return array(
"select" => "select distinct qms.id",
"from" => "from qms",
"join" => "join contacts on contacts.qms_id = qmd.contact_id"
"where" => "where qms.email = contacts.email"
);
}
, .
. / //subpaneldefs.php
, .
include/utils.php , , , .