If you review this topic here:

http://drupal.org/node/30135

...you will see I've extended template_theme so that the section rollups (overview/list of all nodes in a category) also use the appropriate theme. Feel free to copy my code if you like it. It's a single-line change, not big at all.

However, there is one weakness with it. If there are NO nodes in a category yet, the theme won't apply. Why is that, and do you have advice on how to get around that?

-Tony

Comments

drupalxykon’s picture

I think you will have to patch taxonomy.module

function taxonomy_node_get_terms_by_vocabulary($nid, $vid, $key = 'tid') . It's not entering the 'while' loop if there are no nodes in the taxonomy term.

Well, thats where Im looking anyway

Regards,

V

drupalxykon’s picture

To reply to the original poster I think you will find that there is a join between term_data and term_node and if no posts exist term_node will not have an entry.

this is probably why you wont see the theme applied.

-v

profix898’s picture

Status: Needs work » Closed (fixed)

Issue closed since the patch does no longer apply and
the current version should work without it.