Problem/Motivation
It is possible to show the total count of rows under "Header" and "Footer" in a View by inserting [view:total-rows] in the "Text area - Global" field. But it is not available as a field, like "View result counter" is.
This works for most use cases, but if you want to use the total row count together with other fields, you can't, for example in a Carousel:
[THE IMAGE]
Image 2 of 18 - Text describing the image
Photo by: xyz
I am aware that this is possible using an attachment, but that doesn't seem ideal ...
Available:
"View result counter - Global" Displays the actual position of the view result.
Add?
"View result total rows - Global" Displays the total amount of results returned from the view.
Proposed resolution
Add "View result total rows - Global" as a field option.
Remaining tasks
Add the code which will make "View result total rows - Global" available as a field option in Views.
User interface changes
A new field "View result total rows - Global" will be added under Fields in Views.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Original report by [username]
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot 2020-05-04 at 12.50.46 PM.png | 10.48 KB | himanshu_sindhwani |
| #4 | Screenshot 2020-05-04 at 12.50.36 PM.png | 189.11 KB | himanshu_sindhwani |
Comments
Comment #2
ressaComment #3
ressaComment #4
himanshu_sindhwani commentedThis can already be achieved using Global: Result summary in the header of view. Check this screenshot for more info.
Adding the above in headers will result in :
Comment #5
ressaYes, I know. Please read the text under "Problem/Motivation" again.
Comment #6
ressa