×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Total Records in Search results
John Leger
Usuario está bloqueado
Posts: 3
9 años 5 meses antes - 9 años 5 meses antes #866
por John Leger
Total Records in Search results Publicado por 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
Última Edición: 9 años 5 meses antes por John Leger.
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
John Leger
Usuario está bloqueado
Posts: 3
9 años 5 meses antes #867
por John Leger
Respuesta de John Leger sobre el tema Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
Tiempo de carga de la página: 0.052 segundos