Drupal 视图分类层次结构
我遇到了如何显示节点分类术语的问题,我需要一些帮助。
我有 2 个分类词汇:类别和特色文章。第一个是分层词汇表,其中术语可以嵌套在多个级别上。特色文章词汇表只有一个 YES 术语。
现在,在我的视图中,我想显示我的节点,这些节点的特色文章以随机方式设置为“是”。这一点我已经做到了。
现在除了预告片和标题之外,我还想显示节点的每个类别,嵌套如下:
Parent > >儿童> ChildOfChild
谁能告诉我该怎么做?
提前致谢。
I´ve got a problem with how to display taxonomy terms of node with which I need some help.
I´ve got 2 taxonomy vocabularies: categories and featured article. The first is a hierarchical vocabulary in which terms can be nested on multiple levels. The featured article vocabulary only has a YES term.
Now in my View I want to display my nodes which have featured article set to YES in random fashion. This I have managed to do.
Now besides the teaser and title, I would also like to display every category of the node, nested like this:
Parent > Child > ChildOfChild
Can anybody tell me how to do this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选择分类法:所有具有按词汇表限制术语选项的术语字段都可以完成这项工作。它之前不起作用,因为我只选择了节点的子类别。我必须选择父类别和子类别。
Selecting the Taxonomy: All terms fields with the limit the terms by vocabulary option did the job. It didn´t work before cause I only selected the child category for the node. I have to selecte both the parent and child categories.