×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Total Records in Search results
John Leger
Užívateľ je zablokovaný
Posts: 3
pred 9 rokmi 5 mesiacmi - pred 9 rokmi 4 mesiacmi #866
od John Leger
Total Records in Search results bolo vytvorené 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:
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
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
Posledný krát upravené:pred 9 rokmi 4 mesiacmi John Leger
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
John Leger
Užívateľ je zablokovaný
Posts: 3
pred 9 rokmi 5 mesiacmi #867
od John Leger
Odpoveď od John Leger na tému Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Čas vytvorenia stránky: 0.072 sekúnd