× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Total Records in Search results

9 år 5 måneder dager siden - 9 år 5 måneder dager siden #866 av John Leger
Total Records in Search results opprettet av John Leger
Site:  barchan.joomlaharvest.com/projects

I have a custom component I'm developing and need to display the total number of items in the search results in the view, including all the items on all the pagination pages. 

This code block below only gets me the total records on the current page:
<?php echo count($this->items); ?>



For instance if I have 98 results and my pagination filter set to only show 10 results per page, I need to be able to display 98 as the total number of records returned.

Can someone please point me in the right direction?

John
Last edit: 9 år 5 måneder dager siden by John Leger.

Vennligst Logg inn eller Registrer konto for å bli med i samtalen.

9 år 5 måneder dager siden #867 av John Leger
Besvart av John Leger i emne Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>

Vennligst Logg inn eller Registrer konto for å bli med i samtalen.

Tid til å lage siden: 0.049 sekunder
Forumløsning av: Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.