By vertazzar on
Can someone tell me the php snippets for Views,
I want to put the snippet in header, I already have the code for displaying total number of nodes in view, but I need more features e.g. total number of comments, and so on ..
snippet for total number of nodes in view is :
<?php
global $pager_total_items;
print $pager_total_items[0] ;
?>
Comments
bump really need this.. can
bump
really need this.. can anyone answer :/
Have you tried drupalsnippets.com?
This might get you to where you need to go...
http://www.drupalsnippets.com/search/node/count+type%3Asnippet
Specifically:
http://www.drupalsnippets.com/snippet/type/php/add-comment-count-node
http://www.drupalsnippets.com/snippet/category/pages/list-node-count-eac...
http://www.drupalsnippets.com/snippet/type/php/print-taxonomy-menu-list-...
thank you very much !
thank you very much !
nice, thanx from me to both
nice, thanx from me to both :)
Adriadrop Drupal development