Posted By

shrop on 09/05/08


Tagged

drupal views Themes


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Who likes this?

1 person has marked this snippet as a favorite

mvance


Drupal Views 1 - remove node count from summary listings


Published in: PHP 






Insert into your phptemplate theme's template.php file to override the original View theme code.

Expand | Embed | Plain Text
  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. }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: mvance on October 22, 2008

This was just what I was looking for and it was towards the top of my Google search too — nice work. Thanks!

You need to login to post a comment.

Download royalty free graphics