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

Comments

ludo1960’s picture

I think you need to get a mySQL snippet to use the COUNT aggregate function

WorldFallz’s picture

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.

abiralsky’s picture

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.