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

Total Records in Search results

9 år 3 måneder siden - 9 år 2 måneder siden #866 af John Leger
Total Records in Search results blev oprettet af 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
Sidste redigering: 9 år 2 måneder siden ved John Leger.

Venligst Log på eller Opret en konto for at deltage i samtalen

9 år 3 måneder siden #867 af John Leger
Besvaret af John Leger på emne Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>

Venligst Log på eller Opret en konto for at deltage i samtalen

Tid til at oprette siden: 0.065 sekunder
Leveret af Kunena Forum

Vi we benytter cookies, så vi bedst muligt kan levere vores services. For mere information, se vores