mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-26 02:08:05 +02:00
package SK + FB
This commit is contained in:
parent
c6c1840073
commit
ca1360f8bf
7 changed files with 355 additions and 0 deletions
83
managed/searchkit-category-counts.mgd.php
Normal file
83
managed/searchkit-category-counts.mgd.php
Normal file
|
@ -0,0 +1,83 @@
|
|||
<?php
|
||||
use CRM_Contactcats_ExtensionUtil as E;
|
||||
|
||||
return [
|
||||
[
|
||||
'name' => 'SavedSearch_Contact_Category_Summary',
|
||||
'entity' => 'SavedSearch',
|
||||
'cleanup' => 'always',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'name' => 'Contact_Category_Summary',
|
||||
'label' => E::ts('Contact Category Summary'),
|
||||
'api_entity' => 'ContactCategory',
|
||||
'api_params' => [
|
||||
'version' => 4,
|
||||
'select' => [
|
||||
'category:label',
|
||||
'COUNT(contact_id) AS COUNT_contact_id',
|
||||
],
|
||||
'orderBy' => [],
|
||||
'where' => [],
|
||||
'groupBy' => [
|
||||
'category',
|
||||
],
|
||||
'join' => [],
|
||||
'having' => [],
|
||||
],
|
||||
],
|
||||
'match' => [
|
||||
'name',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'SavedSearch_Contact_Category_Summary_SearchDisplay_Contact_Category_Summary',
|
||||
'entity' => 'SearchDisplay',
|
||||
'cleanup' => 'always',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'name' => 'Contact_Category_Summary',
|
||||
'label' => E::ts('Contact Category Summary'),
|
||||
'saved_search_id.name' => 'Contact_Category_Summary',
|
||||
'type' => 'table',
|
||||
'settings' => [
|
||||
'description' => NULL,
|
||||
'sort' => [],
|
||||
'limit' => 0,
|
||||
'pager' => FALSE,
|
||||
'placeholder' => 5,
|
||||
'columns' => [
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'category:label',
|
||||
'dataType' => 'Integer',
|
||||
'label' => E::ts('Category'),
|
||||
'sortable' => TRUE,
|
||||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'COUNT_contact_id',
|
||||
'dataType' => 'Integer',
|
||||
'label' => E::ts('Count'),
|
||||
'sortable' => TRUE,
|
||||
],
|
||||
],
|
||||
'actions' => TRUE,
|
||||
'classes' => [
|
||||
'table',
|
||||
'table-striped',
|
||||
],
|
||||
],
|
||||
],
|
||||
'match' => [
|
||||
'saved_search_id',
|
||||
'name',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue