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

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

问题描述

我有一个视图集来获取最新的论坛帖子.这工作正常,但我想将其限制为仅获取最后 5 条记录.我知道我只能用 PHP 显示 5 个,但我不想要比我需要的更大的查询.我在视图中找不到任何选项.

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.

谢谢

推荐答案

是的.有一个选项可以限制它,称为基本设置"下的要显示的项目:".

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

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

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