backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 40 forks source link

Add a views filter/argument for Term Depth #2666

Open jenlampton opened 7 years ago

jenlampton commented 7 years ago

I would like a view that can show all my taxonomy terms that are either the top level, or the 2nd level, but not below that.

In spite of there being a very complicated filter for "Content has taxonomy term with depth X" there is not a more simple one "This term has depth X".

I spent a while today trying to create the simple one based on the more complex one, but I'm not sure I can do it. Posting what I have here as a start for feedback, and so I can return to it later with fresh eyes.

Related drupal issues:

klonos commented 7 years ago

👍 to getting whatever is half-finished on a PR, so that more eyes take a look.

No time to give the PR sandbox a go, but I did quickly go over the help and docblock/comments text and found a few typos and things that would need corrections.

klonos commented 7 years ago

👍 for the feature too 😉