标签: drupal-7 drupal-views
我知道在视图Drupal 7模块中,我可以通过在页眉或页脚中添加“全局结果摘要”来打印计数结果。
但是如何只在块上打印那些计数结果呢?
views Global Result Sumary
答案 0 :(得分:0)
哦,我得到了答案:Drupal return number of results in a View
$view = views_get_view('viewname'); $view->set_display('block_1'); $view->render(); print sizeof($view->result);
感谢。