displaying number of nodes under a taxonomy term
abiralsky - October 29, 2009 - 19:10
Hi everyone,
I am an intermediate drupal developer.I want to develop a site like Craiglist and I have a problem.
I would like to display a list of terms falling under a taxonomy term along with the number of nodes related to that term.
For eg if the term computer sales has 5 nodes related to it.I want to display Computer (5).how can I do it.I tried it with views and taxonomy list module but wasn't quite what I wanted.So is there anybody who could lend me a bit of help.
thank you

Hi
I think you need to get a mySQL snippet to use the COUNT aggregate function
_
Normally this is done with a node view using the 'taxonomy: term" argument, and selecting one of the summary options. Alternatively, ludo is right-- you can code it manually with the COUNT function. There should be a sample or two in the snippets section: http://drupal.org/node/21867.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
yea we could do the summary
yea we could do the summary thing but it falls under the category that the actual argument doesn't exist.So it's quite vague I think. plus it doesn't display the contents in the field section of the view rather the content of the argument, isn't it??
do you have any other ideas.