This patch is nice but the code will fail if you have hierarchic vocabulary like this one
that lists Motor Bike,Model and Manufacturing. Year
Honda,
750 Deluxe,
2004
2005
Yamaha,
1000 Low Rider,
2004
When feeds is offered a Yamaha 1000 Low Rider built in 2004, your code will find this term path: Honda, 750 Deluxe, 2004 because it looks from the child up and finds the 2004 term under Honda first. (I have some data that proves the failure). However you should look from the parent down.
Would you be able to write a patch that does this? I am more of a site builder than a developer.
The code would need a comma delimited string as input to do its magic such as: "Yamaha,1000 Low Rider,2004".
Taxonomy already has a function for it, which is explained here
Oh, the indentation was stripped from my previous post (#4). So Make is on the 1st level, Model is on the 2nd level and, Year is on the 3rd. You 'll get it...
Drupal 7 reached end of life and the D7 version of Feeds is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues.
If you still have questions about using Feeds on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #feeds channel on Drupal Slack.
If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome!
Comments
Comment #1
relaxnow commentedAttached is a patch that implements this.
Comment #2
relaxnow commentedFixed ordering of terms, parents should be stored first so autopath can generate a proper URL.
Comment #3
relaxnow commentedNow a patch that actually applies...
Comment #4
webjazznl commentedThis patch is nice but the code will fail if you have hierarchic vocabulary like this one
that lists Motor Bike,Model and Manufacturing. Year
Honda,
750 Deluxe,
2004
2005
Yamaha,
1000 Low Rider,
2004
When feeds is offered a Yamaha 1000 Low Rider built in 2004, your code will find this term path: Honda, 750 Deluxe, 2004 because it looks from the child up and finds the 2004 term under Honda first. (I have some data that proves the failure). However you should look from the parent down.
Would you be able to write a patch that does this? I am more of a site builder than a developer.
The code would need a comma delimited string as input to do its magic such as: "Yamaha,1000 Low Rider,2004".
Taxonomy already has a function for it, which is explained here
http://drupalcontrib.org/api/drupal/drupal!modules!taxonomy!taxonomy.mod...
However I lack the experience to pull this off in Drupal. I would really appreciate your help!
Thanks for your time,
Henk
Comment #5
webjazznl commentedOh, the indentation was stripped from my previous post (#4). So Make is on the 1st level, Model is on the 2nd level and, Year is on the 3rd. You 'll get it...
Comment #6
summit commentedHi setting back to needs work based on #4. Greetings, Martijn
Comment #7
bluegeek9 commentedDrupal 7 reached end of life and the D7 version of Feeds is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues.
If you still have questions about using Feeds on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #feeds channel on Drupal Slack.
If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome!