Drupal Views按分类法将最新内容显示到一个节点 [英] Drupal Views display newest content per taxonomy limit to one node

查看:89
本文介绍了Drupal Views按分类法将最新内容显示到一个节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个视图,其中显示所有5个分类术语,然后显示最新发布的节点,但这受1限制。例如:

I want to create a view where all 5 of my taxonomy terms are displayed and it then displays the latest node published but this is limited by 1. For Example:


税收条款1

最新节点发布

Tax Term 1
Latest node published

税收条款2

最新节点发布

Tax Term 2
Latest node published

等等等

当前,我正在按分类学术语分组,因此它正在显示所有发布的节点然后按发布日期desc排序。我不太清楚如何限制节点在每个分类术语中仅显示一项。

Currently I'm grouping by taxonomy term so it's displaying all nodes published then sorted by published date desc. I can't quite figure out how to limit the nodes to only show one item per taxonomy term.

任何帮助将不胜感激。

推荐答案

在Views 3中可以做到这一点。我已经在D7上对此进行了测试,但也应该在D6上工作。

This is possible with Views 3. I've tested this on D7, but should work on D6 also.


  1. 添加类型的新视图-分类术语

  2. 添加关系-分类术语:代表节点

  3. 其他-使用汇总:是

  4. 添加字段-内容:标题。将汇总设置更改为将结果分组在一起

  1. Add a new view of type - Taxonomy terms
  2. Add relationship - Taxonomy term: Representative node
  3. Other - Use aggregation: Yes
  4. Add field - Content: Title. Change Aggregation settings to Group results together

这篇关于Drupal Views按分类法将最新内容显示到一个节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆