I have a content type "News entry", which has a term reference "News category", which is of course a taxonomy vocabulary.
I’m not sure if I get this whole taxonomy thing right, but I’m able to render and theme each category correctly (/news/category-a).
Now I want to theme the overview or home page, which displays all news entries of all categories. Easiest way for me would be selecting the right rows out of the database, but I reckon that’s not very much the Drupal way.
So I figured out how to get all terms of a vocabulary. In the preprocessing function theme_preprocess_node_news_overview() I tried taxonomy_get_tree(). Now I've got an object for each term with the following contents:
https://i.stack.imgur.com/cbT8c.png (can’t post images yet)
The news entries are preprocessed in theme_preprocess_node_news_post(), It’d be great if this function could be reused for the news overview.
And now I’m stuck. How do I get Drupal to behave like it’s displaying a category/tax. term, but instead of the nodes of one term get (and display) the nodes of all terms?