How to get items count in category view?

7 months 2 weeks ago #77283 by lipatovroman
Hello!
I found that this code displays items count, current page and all pages - Results 1 - 30 of 499
<?php echo @$this->resultsCounter ? $this->resultsCounter : $this->pageNav->getResultsCounter(); // custom Results Counter ?>

But how to get only items count?



Thanks.

Please Log in or Create an account to join the conversation.

7 months 1 week ago - 7 months 1 week ago #77318 by ggppdk
Hello

its
<?php echo $this->pageNav->total; ?>

There are more data like
/**
	 * @var    integer  Current page
	 * @since  3.0
	 */
	public $pagesCurrent;
 
	/**
	 * @var    integer  Total number of pages
	 * @since  3.0
	 */
	public $pagesTotal;

you can see what is available here
https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Pagination/Pagination.php


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.