Contribution Date
Technology
Contribution Project
Contribution Details
You can enable the views php and write the following code :
if (!isset($static['size'])) {
foreach($view->result as $each_result) {
$result_array[] = $each_result->nid;
}
$size = count($result_array);
$static['size'] = $size;
}
return $static['size'];
This will return the total number of counts of result.
Another approach is to to user views_query_alter to get the total number of records and pass in the result array.
Contribution Issue Link
Files count
0
Patches count
0