在 Drupal 中,如何链接两个分类法?
在 Drupal 7 中,我试图为运动员(这是一种内容类型)分配“运动”和“团队”。我正在尝试使用分类法......不确定这是否是最好或正确的方法。我最初有一个分层分类法,比如
- 棒球
- 芝加哥小熊队
- 底特律老虎队
- 篮球
- 丹佛掘金队
- 犹他爵士队
但这似乎不对,因为小熊队不是棒球的一种......“运动员”视图应该可以按运动进行过滤,然后使用动态下拉菜单进行组合,并且该节点应该显示运动和团队。有没有办法必须分离链接的分类法?还是我找错了树?
编辑:发现了一个名为 Hierarchical Select 的很棒的模块,尽管它没有完全移植到 Drupal 7。我已经收到一个又一个的提示,我应该在这个项目上使用 Drupal 6。我想我现在就开始跳跃吧,虽然现在还为时过早。
PS 那么我应该删除这个问题...还是直接留下它?
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
- Baseball
- Chicago Cubs
- Detroit Tigers
- Basketball
- Denver Nuggets
- Utah Jazz
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我决定使用分层选择模块。它工作得非常好。
I decided to go with the Hierarchical Select module. It works very nicely.