Drupal视图1-从摘要列表中删除节点计数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Drupal视图1-从摘要列表中删除节点计数相关的知识,希望对你有一定的参考价值。

Insert into your phptemplate theme's template.php file to override the original View theme code.
  1. /**
  2.  * Display a summary version of a view. Remove node count.
  3.  */
  4. function phptemplate_views_summary($view, $type, $level, $nodes, $args) {
  5. foreach ($nodes as $node) {
  6. $items[] = views_get_summary_link($view->argument[$level]['type'], $node, $view->real_url);
  7. }
  8. if ($items) {
  9. $output .= theme('item_list', $items);
  10. }
  11.  
  12. return $output;
  13. }

以上是关于Drupal视图1-从摘要列表中删除节点计数的主要内容,如果未能解决你的问题,请参考以下文章

如何从drupal 6中的视图中删除节点

如何从 drupal 7 视图中删除重复项(具有相同字段的节点)?

Drupal 7 在视图中获取分类术语列表

(Drupal 6 Views)如何制作一个显示特定节点列表的视图(按节点ID)?

Drupal:从节点而不是url获取块视图的参数?

Drupal 自定义内容类型列表视图