Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This is a collection of extensions on the normal Views Taxonomy Term filter that allow one to:

  • Optionally add any Parents, Children, and Siblings to the query so that one can find relations of a term they select.
  • Restrict Term options on select & autocomplete to terms on content, with an optional filter by node bundle, while optionally adding any Parents, Children, and Siblings to the options presented.

This enables some tricky scenarios and can get confusing...i.e. when using the Restrict Filter one could show parents of a term on a node in the options but then not allow one to query children of that parent selected. Care should be taken in configuration.

Currently the Term Family filter only adds additional terms to the query on exposed filters. This seems to be the way forward as when one isn't exposing the filter they can select all the terms they desire in the filter settings forms.

Hierarchy Example:

Parent A
- Child A
-- Child of Child A
- Child B
- Child C
Parent B
- Child A
-- Child of Child A
- Child D
- Child E

Now when searching for the term Child A, you gain the option of returning optionally:

(with Parents, Children, & Siblings selected)
Child A
Parent A
Parent B
Child of Child A
Child B
Child C
Child D
Child E

(with Children, & Siblings selected)
Child A
Child of Child A
Child B
Child C
Child D
Child E

(with Siblings selected)
Child A
Child B
Child C
Child D
Child E

Project information