开发者

Drupal: Duplicate blog tags showing in block

开发者 https://www.devze.com 2022-12-16 23:02 出处:网络
I\'ve got a Druapl-based website with a blog.I\'m using a custom view block to list the different tags I\'ve assigned to my posts.Although it lists them just fine (links work fine too), I\'m getting a

I've got a Druapl-based website with a blog. I'm using a custom view block to list the different tags I've assigned to my posts. Although it lists them just fine (links work fine too), I'm getting alot of duplicates.开发者_StackOverflow中文版 For example, if I tag 3 differents posts with "sometag", then my block lists "sometag" 3 times in a row.

How do I fix this so each tag only appears ONCE in the block?

View export (in PHP): http://pastebin.com/m7b4724b7

View screenshot: http://i49.tinypic.com/2vmsthk.gif

Thanks!


select Term at Views creation, not Node.


Two options:

  1. Click the little cog next to Style: HTML List, and select group by Taxonomy: Term.it.
  2. Do as Nikit suggested and do a Taxonomy view instead of a Node view. That way, you can just select to filter duplicates and it will work as expected (by filtering duplicate terms instead of duplicate nodes)

Either should work fine. Just do whatever makes more sense to you.

0

精彩评论

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