Drupal查看显示 - 设置查询结果的限制 [英] Drupal View display - setting a limit for the query results

查看:137
本文介绍了Drupal查看显示 - 设置查询结果的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视图来抓取最新的论坛帖子。这是正常的,但我想限制它只得到最后5条记录。我知道我只能用PHP显示5,但是我不想要比我需要的更大的查询。我在View中找不到任何选项。



谢谢

解决方案>

是的。有一个选项限制它在基本设置下被称为要显示的项目。


I have a View set to grab the latest forum posts. That's working fine, but I'd like to limit it to get the last 5 records only. I know I can display only 5 with PHP but I don't want a larger query than I need. I can't find any option for this in the View.

thanks

解决方案

Yep. There is an option that limits it called 'Items to display:' under Basic Settings.

这篇关于Drupal查看显示 - 设置查询结果的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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