I have a multilevel vocabulary, say 4 levels, and only leafs are selectable for association with nodes. I want shown in taxonomy the whole subtree, if at least one of leaf has a node associated, well I will use the new option Show terms that don't have nodes if at least one child term has a node.
Now, say I want to see in block only levels up to 3rd, leaving out the leafs at 4th level, if i exclude all tids in deeper level these are correctly not only excluded from visualization, but are not parsed at all, so what i see is no more than nothing.
Is possible to add an option (and the code, of course) to limit only the visualization depth of tree to a given value, without excluding sub-level tids from being parsed?
I tried myself to poke into the code, but no luck, so can't post a patch.
Comments
Comment #1
mas160 commentedJust a solution to my own question.
My necessity was to have a multilevel taxonomy with n levels and wanted to see in taxonomy block only first 2 levels, then navigate deeper levels using my own module, so viewing of whole taxonomy tree is unwanted and anti-aesthetic.
I messed for a while with this module code, but didn't like the result, so as I was overriding jquerymenu.css in theme for my purposes, I added there two elements:
And it works.
Comment #2
mas160 commented