我已经定义了帐户和自定义模块(标签)之间的多对多关系。标签在 Accounts 中有一个子面板;但是,我需要对客户进行自定义过滤器,以显示与您输入的标签名称相关的所有客户记录。
/custom/Extension/modules/Accounts/Ext/clients/base/basic/filterAccountsByTag.php
$viewdefs['Account']['base']['filter']['basic']['filters'][] = array(
'id' => 'filterAccountsByTag',
'name' => 'LBL_FILTER_ACCOUNTS_BY_TAG',
'filter_definition' => array(
array(
'custom_tags_accountscustom_tags_ida' => array(
'$equals' => ' ',
),
),
array(
'name' => ''
)
),
'editable' => false,
'is_template' => false
);
总而言之,我想根据子模块的过滤器显示主模块结果。有人经历过吗?这不是相关领域;这是一种关系。