I'm using contextual filters to display Ubercart products according to taxonomy terms. How do you display the number of items/nodes with a given term? This doesn't seem like a complicated thing to display, but after hours of searching I'm unable to find any solution.

CommentFileSizeAuthor
#4 Aggregation.jpg125.34 KBkiero63

Comments

dawehner’s picture

This is really not an easy task, sadly.

One approach which views have is the usage of "summary". Therefore create a product view, and add the term as contextual filter.

There you can specify to use a summary.

merlinofchaos’s picture

Status: Active » Fixed

The summary is easiest, using an argument for the term.

You can create a group by query. Under advanced enable 'group by'. Add two fields: Your term and the nid field. Set the group settings on the 'nid' to be count and set the term to be group results together. That should give you a basic count by term.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kiero63’s picture

StatusFileSize
new125.34 KB

Sorry to reopen this old subject but I can't find the "Group by" option inside views, I check the aggregation option but this make a display problem for me, the picture isn't shown.

I add a picture of my view if I missed to add something...

Thanks