How to do taxonomy menu with views, arguments and node count? With php-code snippet is to easy.
What i've do (for e.g. ads - cars by makes): Nodes: ad, taxonomy: make, city A taxonomy terms view - Car makes (taxonomy terms) Add relationship - ("Makes"-relation, Nodes have term) Add fields to view: term name, count(nid) via agregation.
So view's output is: honda - 5, mazda - 0, toyota - 3
Term with 0 node count outputs like term name, it is ok.
Ok, all works fine, but I need to add a location argument (city, node term) I add another relationship based on "Makes", called "City" Add a contextual filter "City name" using "City" relation (if arg empty - show all)
Now in empty (or incorrect) argument I have this:
honda - 5, mazda - 0, toyota - 3
And when city is set: honda - 2, toyota - 1
Term with 0 node count outputs nothing. How to make this view work fine?