Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have been using the following HTML code in the Configure Header: Global: Result summary area
<br />Displaying @start - @end of @total Records<br />
Current Page Number @current_page of @page_count Pages <br />
<br />
Works great - love the functionality.
I need a mathematical difference from @end and @start to give a record count for the current page or a @current_page_count. This, of course, is only worth anything on the last page if it is short of the total records allowed. Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#2 | views-count-current-page-records-1580816-2.patch | 1.14 KB | damiankloip |
#1 | views-count-current-page-records-1580816.patch | 1.14 KB | damiankloip |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedThis would be handy at times. Here is a patch for this.
Comment #2
damiankloip CreditAttribution: damiankloip commentedMaybe keep it uniform, and call it record count.
Comment #3
dawehnerIt is not that easy to abuse a field to do that, let's get it in. Committed to 7.x-3.x and 8.x-3.x