This patch tags a post with its parents' terms (as requested in http://drupal.org/node/230131 and http://groups.drupal.org/node/14161).
Given the following taxonomy,
- Books
-- Fiction
-- Non-Fiction
- Magazines
-- Weekly
-- Monthly
a post tagged with 'Fiction' will also be tagged with 'Books'. Note that applying this patch may break modules relying on Drupal's default behavior.
| Comment | File | Size | Author |
|---|---|---|---|
| recursiveTags.patch | 1.4 KB | klharris |
Comments
Comment #1
damien tournoud commentedThis is a feature request, and feature requests need to be filled against the most current development version (D7).
Comment #2
likewhoa commentednice patch, thanks.
Comment #3
catchIf you want this to go into core it'll at a minimum need to be re-rolled to match http://drupal.org/code-style and also to make this behaviour configurable.
Comment #4
Anonymous (not verified) commentedThanks catch - could you post your link again? I'm getting "page not found"
Thanks!
Comment #5
damien tournoud commentedhttp://drupal.org/coding-standards
Comment #6
OneTwoTait commentedWill this work for Drupal 6.x too?
Comment #7
OneTwoTait commentedI haven't had any luck with applying this patch to Drupal 6.x
Comment #8
wretched sinner - saved by grace commentedI like this :) Will try to have a look at it at some stage soon.
Comment #9
yulia-1 commentedis there anything like this for Drupal 6?
Comment #10
MattDrupalee commentedAlso interested to know if there is something similar available in Drupal 6..?
Comment #11
amc commentedTagging.
Comment #12
catchThis would need to be a new field widget / validator now. Moving to Drupal 8.
Comment #13
dhigby commentedI am also interested in a way to enforce recursive tagging in D6.
Comment #14
OneTwoTait commentedMade some progress. Now, instead of doing nothing, it gives an error message when a node is saved: "user warning: Duplicate entry '24-0' for key 'PRIMARY' query: INSERT INTO term_node (nid, tid) VALUES (0, 24) in (site directory)/modules/taxonomy/taxonomy.module on line 720."
Comment #15
thomas1977 commentedJust found this issue after having looked for a solution to save parent taxonomy terms automatically along with the child term in the node. Don't know if this is the right place to post - but has there been any progress on a possible solution to this (I'm on D7)? Any module? Anything?
Comment #16
Anonymous (not verified) commentedI'm still interested in this topic as well.
Comment #17
jibranAfter #1847596: Remove Taxonomy term reference field in favor of Entity reference the field part of the taxonomy belongs to entity reference field. Feature requests are part of 8.1.x now.
Comment #18
jibranComment #19
amateescu commentedDrupal\taxonomy\Plugin\EntityReferenceSelection\TermSelectionis provided by the Taxonomy module, moving back to the right queue.Comment #35
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #36
smustgrave commentedSince there's been no follow up and as a feature request. Going to close out. If still a valid request please re-open
Thanks all