There are times where show all items that are tagged with children of some particular term.
For example, here is a taxonomy
Triangles->Right Triangles
Triangles->Isosceles Triangles
Isosceles Triangles->Equilateral Triangles

and there are a few nodes
node 1: right triangles
node 2: equilateral triangles

Filter children of "triangle"
returns node 1 and node 2

Comments

dawehner’s picture

sry.

Is this how it should work? there is no question in this issue.

AlexisWilke’s picture

Darn!

Looks like the views are too complicated for most people to handle! 8-)

Whenever I create a Node type view, I can select Taxonomy Term ID with depth. We would need that feature in the views created as Taxonomy type. At this time, you cannot make anything with the depth which is rather annoying.

I was looking into making the Node type of the filter work with the Taxonomy type, but I thought that in v2.x you would write all Taxonomy related filters inside Taxonomy and link them to the node with a Join. So I don't understand why that Taxonomy with depth filter isn't available in the Taxonomy...

More soon.

Thank you.
Alexis Wilke

summit’s picture

Subscribing, needing filtering only on depth of taxonomy terms. So say on 2, only get taxonomy terms with depth 2.
Greetings, Martijn

iNade’s picture

The first comment of the thread is pretty ununderstable, but the problem is really here : "So say on 2, only get taxonomy terms with depth 2.".

Subscribing btw.

iamjon’s picture

Subscribing this would be a really cool function

iamjon’s picture

StatusFileSize
new69.33 KB
new82.21 KB
new69.15 KB
new92.91 KB

I'm attaching a couple of images to illustrate the issue request. For both arguments and filter

iamjon’s picture

StatusFileSize
new88.69 KB

I spoke to merlinofchaos yesterday on MIRC he hinted that if you're just looking to get the child of a term you can do it with relationships. I had no clue how to do that, a bunch of goggling and 15minutes of experiments later I came up with this, and low and behold it works I probably did something wrong.

It's not the solution to the issue, but does at least solve part of the problem if someone needs only the first level child of a term.

Edit. I'm might have mis-configured the view, but I from the view I posted here I was only able to get the first level from the first term,
My tree
term1
-t1child1
--t1grandchild1
--t1grandchild2
--t1grandchild3
-t1child2
-t1child3
term2
-t2child
-t2child
-t2child

If I gave term1 as an argument everything worked swimmingly. I got the images and the terms for t1child1, t1child2, t1child3. If I gave t1child1 as the argument, instead of getting the grandchildren I got the same results.

I tried the recipe here http://drupal.org/node/392336#comment-1327618, but it didn't work as well, something to do with the images.

iamjon’s picture

StatusFileSize
new2.79 KB

I've decided to follow agentrickard and majis footsteps http://drupal.org/node/271833 and try code a solution to the problem.
As per my conversation with merlinofchaos on mirc I'm posting the first attempt, that still doesn't work at all, so he or someone reading this can point me in the right direction of which handlers to plug into, and what to google, as I learn the views api.

iamjon’s picture

Status: Active » Postponed

I'm postponing this issue as I don't have time to deal with it. There is another issues that are attempting the same/similar thing:

http://drupal.org/node/329159
http://drupal.org/project/tax_depth_lim_filter
http://drupal.org/node/333439
http://drupal.org/project/views_hacks

iamjon’s picture

Status: Postponed » Closed (won't fix)