Posted by Anonymous on August 21, 2008 at 5:10pm
I'm working with a few groups of instructors on sites that facilitate lesson plan creation, sharing, and discussion.
We're using the categories module to create several vocabularies like the following:
* Syllabii
* Course Calendars
* Sequence 1 (4)
* Sequence 2
* Sequence 3 (2)
* Themes (2)
o Art (1)
o Identity (1)
o Language
o Literacy
o ....
I've been looking for a way to make sure that any node tagged with a child term (e.g., "Art" in the example above) also gets tagged with the parent (e.g., "Themes" in the example above).
At the moment this only happens if users control-click on all of the appropriate terms.
I've seen the taxonomy force all module, but was looking for something that would tag the actual nodes with all of the appropriate terms.
If you have any hints or ideas, I'd very much appreciate the help!
Thanks!
Doug
Comments
If you're using D5, I think
If you're using D5, I think the hierarchical_select module supports recursive taxonomy:
"Hierarchical Select has the ability to save the entire lineage of a selection or only the "deepest" selection. You can configure it to force the user to make a selection as deep as possible in the tree, or allow the user to select an item anywhere in the tree"
http://drupal.org/project/hierarchical_select
I don't know if it's compatable with the categories module though.
Actually, maybe it might be able to replace the categories module?
If you're using D6, I think HS will be ported within the next couple of months,
after the last bugs in v5 have been ironed out.
Apart from the demo, I haven't tried it myself yet. But I'm very much looking forward
to testing this module within my own website.
I would also recommend HS
Just installed Hierarchical Select and it works well - there is an issue I submitted with Javascript Aggregator, FYI. It also makes selecting multiple-term levels a bit easier. You can can also force people to choose the deepest level and turn on/off including parent terms.
Hierarchical Select is
Hierarchical Select is overkill for people that just want this feature. Plus, it's a reallllly slow module on some websites.
Wow. That is quite nice.
Wow.
That is quite nice. Thanks very much for the tip.
I have to say that I have mixed feelings about the interface. In some ways, I would prefer a solution that used the simpler interface that comes by default, and then did the "recursive taxonomy" work behind the scenes.
Maybe this has to do with how I have it set up, but it seems that you have to click on a parent term in order to see what the child terms are. For example, in the picture below, there is no indication that there are any child terms under "Themes"
I think I like the open select boxes better in this case, as they give you a more complete view of what your options are:
This is certainly a step forward, and may end up working out, but I'm wondering if there is a solution out there that would do recursive taxonomy with the standard select boxes.
Thanks again to this group for the help!
~~~
doug worsham
http://lss.wisc.edu/~doug
http://unionblend.uniblogs.org/
update on parent / child terms
Just wanted to follow up with one potential solution we're looking at: a patch that tags each node with all parent terms at creation and edit:
This gets around the display problem by making sure that each node is tagged correctly. When creating a node, users can click on terms deep in the vocabulary without having to worry about control-clicking through all parent terms. When viewing individual nodes, you can see all the relevant tags from each part of the tree.
I think some help is needed to make this an optional behavior, and to port the patch to D7.
~~~
doug worsham
http://lss.wisc.edu/~doug
http://unionblend.uniblogs.org/
Patch doesn't work for Drupal
Patch doesn't work for Drupal 6.