Drupal 6-视图标题中的行计数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Drupal 6-视图标题中的行计数相关的知识,希望对你有一定的参考价值。
Found This Code to make a stats page view for a client. Make Sure your header input format is php.
<?php // load view object (has no results yet) $view = views_get_current_view(); // execute view query $view->execute(); $total =0; foreach ( $view->result as $k=> $v ) { $total += $v->node_data_field_paymen_total_value; } // results are now stored as an array in $view->result print "Total Number of Payments : <b>$count</b><br />"; Print "Total Payments :$<b>$total</b> "; ?>
以上是关于Drupal 6-视图标题中的行计数的主要内容,如果未能解决你的问题,请参考以下文章