Item13074: Don't have limit option limit $count format variable

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: FilterPlugin
Branches: master
Reported By: LynnwoodBrown
Waiting For:
Last Change By: MichaelDaum
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
 
Topic revision: r2 - 09 Sep 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy