×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Total Records in Search results
John Leger
Пользователь заблокирован
Posts: 3
9 года 5 мес. назад - 9 года 4 мес. назад #866
от John Leger
John Leger создал тему: Total Records in Search results
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
Последнее редактирование: 9 года 4 мес. назад пользователем John Leger.
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
John Leger
Пользователь заблокирован
Posts: 3
9 года 5 мес. назад #867
от John Leger
John Leger ответил в теме Total Records in Search results
Figured it out.
<?php echo $this->pagination->get('total') ?>
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Время создания страницы: 0.053 секунд