5

A block with taxonomy terms and an overview of the newest nodes for each taxonomy term. Every news sites uses this idea.

Business: Article 1, Article 2 Technology: Article 1, Article 2 Sports: Article 1, Article 2

Only article 1 for every node has a teaser and picture...

Any idea how to do this with just one view? You can make a view for each term, but I don't like that idea...

1 Answer 1

9

I was trying to achieve a similar thing. I've managed to create a view that gets one article for each taxonomy term using 'Taxonomy term: Representative node' under 'Advanced > Relationship'.

There is also 'Content: Taxonomy terms on node' there which might be more what you're looking for.

Once you've got the relationship you can pull out fields and base filter criteria on that relationship. My view only returns 1 content type for instance.

Make sure your view is on Taxonomy not Content.

4
  • Do you think it would be possible to show the taxonomy terms WITH content (taxonomy fields) and a list of nodes? So I don't want to show content from the nodes, I just want to show the titles, and instead I want to show the Taxonomy content... Jan 11, 2012 at 14:48
  • On the fields I think you can add Taxonomy Fields. I think you can also set up a relationship that shows all nodes for that taxonomy rather than just one. Jan 11, 2012 at 15:25
  • The 'Representative node' relationship was just what I needed. Very awesome. Thanks Matt! Oct 17, 2012 at 19:09
  • 1
    Interesting to view Taxonomy, not Content. That just made me understand a huge programming concept, thank you! Mar 30, 2019 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.