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

Total Records in Search results

8 Jahre 10 Monate her - 8 Jahre 10 Monate her #866 von John Leger
Total Records in Search results wurde erstellt von 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
Letzte Änderung: 8 Jahre 10 Monate her von John Leger.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

8 Jahre 10 Monate her #867 von John Leger
John Leger antwortete auf Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 2.002 Sekunden
Powered by Kunena Forum

Wir verwenden eigene Cookies und Cookies von Drittanbietern, um Ihr Nutzererlebnis zu verbessern und Ihnen einen optimalen Service zu bieten. Wenn Sie die Website weiter nutzen, gehen wir davon aus, dass Sie mit unserer Cookie-Politik einverstanden sind.