Ich möchte Count für das Tabellenfeld (n_id) berechnen. Ich möchte die NID zählen und Sortierung basierend auf count.I haben den Code für die Sortierung basierend auf NID Ich möchte auf NID basierend sortieren zählen als Zählen Sie den Wert von NID
$data['link_click_count']['table']['join'] = array(
'node' => array(
'handler' => 'views_join',
'left_table' => 'node',
'left_field' => 'nid',
'field' => 'nid',
),
);
$data['link_click_count']['nid'] = array( //sorting based on nid
'title' => t('Link Node id'),
'help' => t('Link Node id.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
);
downvoter plz erwähnen reason.It kann er hilft, meine Frage zu verbessern – user3386779