Attached is a module called Context Condition: Taxonomy Term Depth for review for inclusion in the Context Extras package. This module provides a condition based on whether a taxonomy term is a top-level or child-level term.

This module has been developed for Drupal 7. Attached is the module code and a screenshot of the interface.

Comments

hadsie’s picture

Thanks @drupalchick!

I haven't had a lot of time to give love to my drupal modules lately. I think as long as there's a decent description of how to use this plugin it should be good to go. Would you like commit access to the module to add your module and possibly start a D7 version?

- Scott

sokrplare’s picture

Oooo, this would be great! Just tried dropping into a D7 install I'm working on and it installed fine, but isn't appearing in the context conditions list. Any special requirements or versions of context, Ctools, etc.? I don't have CEP installed since this is D7.

summit’s picture

Yeah, would love this functionality for more levels to use with country, region, province, place, speciality in place.
Greetings, Martijn

jpstrikesback’s picture

Title: New Plugin Extra: Taxonomy Term Depth » New Plugin Extra: Taxonomy Term Depth (D7)