Recently I needed to style taxonomy block a bit, and there appeared a need to distinguish items in trail. So, here comes a patch... Maybe not the best solution, however it worked for me. The patch is made against 7.x-1.0 branch.

Comments

Taxoman’s picture

Version: 7.x-1.0 » 7.x-1.3
kaido.toomingas’s picture

This wouldn't add all parents.

Did small modifications to your patch

$parents = taxonomy_get_parents_all($active_term->tid);
   foreach($parents as $key => $term) {
      $terms_in_trail[] = $term->tid;
   }
kaido.toomingas’s picture

Issue summary: View changes
StatusFileSize
new5.4 KB
illmatix’s picture

Here is a patched version based on 7.x-1.x in which I rolled in taxonomy-active-trail.patch from d.novikov and added active-trail class on to all parents of a term.