Anyone know what I'm trying to do? I have my taxonomy set up nicely, and pathauto working as well as taxonomy_context. Everything works fine, except when browsing the taxonomy structure I would like it to show all nodes of the sub terms. I figured out there is a depth paramter for taxonomy so taxonomy/term/8/5 returns what I want. I basically want unlimited depth, so going further into the tree is like a narrowing process. Anyway, how do I change the default from zero to something other than zero? Or at least get pathauto and all the breadcrumbs working with a higher depth?

Comments

keizo’s picture

ok, the article.module seems to give this function, but it creates it's own breadcrumbs with >>ariticle included as part of it. Theres got to be a way to do achieve this with out article.module. Anyone know what this involves, is the only way to modify taxonomy_context or pathauto in some way?

Ken Collins’s picture

In taxonomy.module, about 80% down in the function taxonomy_select_nodes() there is a line like this:

$tree = taxonomy_get_tree($term->vid, $tid, -1, $depth);

Change it to this:

$tree = taxonomy_get_tree($term->vid, $tid, -1, NULL);

It sets the depth to NULL which is the same as all. This gives me exactly what I wanted in my categories with working breadcrumbs in 4.6.x

mixey’s picture

Great solution! Worked for me like a charm!

jjalocha’s picture

For the record, the Taxonomy force all module deals with this issue, without hacking into the core modules. Sadly there's no official D6 port, yet, even if a module has been coded and is awaiting review.

walwyn’s picture