I have a term view where a node (pulled in through relationship) is shown for every term, a taxonomy overview view.
Nodes can have multiple terms from a specific taxonomy. So it happens that some nodes are shown twice (or more) in the view.

So I want to add a view filter like this: Node: Primary Term: Term ID equal to Taxonomy: Term ID

How can I achieve this?

I'm willing to write code for this if given some pointers.

Comments

brianV’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Component: Documentation » Code
Category: support » feature

Your best starting point would be to use the views documentation:

http://views.doc.logrus.com/

Also, ask around in the #drupal-views channel in irc.freenode.net - someone would be happy to help you out.

donquixote’s picture

I think it would be a good idea if primary_term would provide a relation for taxonomy views, that would JOIN nodes via their primary term.
Is this planned? Or does it already exist, and we did not see it?
Thanks.