I'm using Drupal 8 Views with Better Exposed Filters to filter a custom content type by two custom taxonomy vocabularies.
Results are filtered by:
- Content: Published (=Yes),
- Content: Content type (in Custom-Type),
- Content: Taxonomy Vocabulary1 (exposed),
- Content: Taxonomy Vocabulary2 (exposed),
The filters are working as desired, and the "No results behavior" generates a label on the results (technically, it's a Global: Text area, not a label) that says:
No results found
When there are results, the client requires a similarly-formatted label on the results that will say something like this:
Viewing 12 of 42 results for: [Vocabulary1 Term] with [Vocabulary2 Term]
Can I accomplish this with Views UI, or should I handle it in the Twig template? Theme suggestions say that the Twig template in use is field--paragraph--field-views--views-reference.html.twig
.
NOTE: As a pager, I'm using Infinite Scroll to reveal 12 new results at a time. At the bottom of each screen full of results, there's a button that says:
Load More [Custom-Type]s
Infinite Scroll options are very similar to what I want:
The following tokens are supported:
@next_page_count
-- the next page record count
@total
-- the total amount of results returned from the view
Instead of showing the @next_page_count
, I really need the current page count (which will increment by 12 results each time the button is pressed, and by the remainder for the last screenful.) And instead of rendering this text on the button, the client wants it back at the top of the results.