Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: FilterPlugin
Branches: master
According to the docs for the FORMATLIST macro (in
FilterPlugin), the
$count
variable "refers to the total number of matched list elements". However, if one sets the
limit
option,
$count
will be the same the limit value even if the actual count is higher. Sometimes it's useful to know if there were additional matches even if they are not rendered. So it seems like it would be more useful to have the
$count
formatting variable actually reflect the total number of matched list elements and not be restricted by
limit
. I'm pretty sure that's the behavior of
$count
in other macros such as
SEARCH and DBQUERY.
--
LynnwoodBrown - 04 Nov 2014
True. I'm going to add a
$hits
variable in addition to
$counts
.
-
$count
: number of elements in the list
-
$hits
: number of elements being processed after applying filters and pruning
--
MichaelDaum - 09 Sep 2016