通过视图中的分层分类减少节点的重复项
德鲁帕尔 6.15 视图 6.x-2.10
我想用视图列出所有节点,并希望以特定词汇表显示它们的分类。节点以分层模式组织。
当我列出节点时,子类别中的节点会列出两次,一次与术语一起列出,一次与父术语一起列出。
我尝试用“分类法:术语”和“分类法:所有术语”列出术语,这两种情况下都存在重复项。唯一的区别是“分类:所有术语”在列表中的两个条目上都列出了术语和父术语。
有没有办法显示这些结果而不重复?
Drupal 6.15
Views 6.x-2.10
I want to list all of the nodes with a view and want to display their taxonomy in a certain vocabulary. The nodes are organised in hierarchical mode.
When I list the nodes, the nodes in a subcategory are listed twice, once with the term and once with the parent term.
I've tried listing the terms both with Taxonomy: Term and Taxonomy: All Terms, the duplicates are there in both cases. The only difference is that Taxonomy: All Terms lists both the term and parent term on both entries in the list.
Is there any way of displaying these results without the duplicates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您读过 http://drupal.org/node/770782 吗?对于初学者,您可能希望将视图从“节点”视图更改为“分类”视图,然后引入您想要的关系的任何其他字段。
这种方法应该可以解决分类视图中重复的大多数问题。
Have you read http://drupal.org/node/770782? For starters, you may want to change your view from a 'node' to a 'taxonomy' view, then bring in any other fields you want with a Relationship.
This approach should solve most isues with duplicates in taxonomy views.