在没有PHP过滤器的情况下在Drupal 7中返回视图的total_rows?


Answers:


26

在我的D7网站上,禁用了php-filter ...

在“查看配置”页面上:“标题”部分,添加“全局结果摘要”

选择总行数或任何您想要的内容:

You may use HTML code in this field. The following tokens are supported:
@start -- the initial record number in the set
@end -- the last record number in the set
@total -- the total records in the set
@name -- the human-readable name of the view
@per_page -- the number of items per page
@current_page -- the current page number
@page_count -- the total page count

1

我找到了 Drupal 7 教程该教程在Views中显示项目数并显示xx个项​​目。这适用于Drupal 7,可让您在“视图”中显示页面数。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.