开发者

In Drupal, how do I link two taxonomies?

开发者 https://www.devze.com 2023-02-14 19:01 出处:网络
In Drupal 7, I\'m trying to have an athlete (which is a content type) be assigned a \"sport\" and a \"team\".I\'m trying to use taxonomies...not sure if this is the best or correct way to do it.I orig

In Drupal 7, I'm trying to have an athlete (which is a content type) be assigned a "sport" and a "team". I'm trying to use taxonomies...not sure if this is the best or correct way to do it. I originally had a hierarchical taxonomy, like

But that doesn't seem right because the Cubs aren't a type of baseball...the "athletes" view should be filterable by sport and then team with dynamic dropdowns, and the node should display both sport and team. Is there a way to have to separate taxonomies that are linked? Or am I barking up the wrong tree?

Edit: Found a great module called Hierarchical Select, though it is not ported completely to Drupal 7. I've had hint after hint that I should just go with Drupal 6 on this project. Guess I'm going to go ahead and make the jump now, while it's still early.

P.S. So do I delete this question...or just leave it?


I decided to go with the Hierarchical Select module. It works very nicely.

0

精彩评论

暂无评论...
验证码 换一张
取 消