Difference between revisions of "Issue:Count and %PAGES%"

From FollowTheScore
Jump to: navigation, search
Line 4: Line 4:
 
  |Version    = ?
 
  |Version    = ?
 
  |Description = %PAGES% does not show total when count is used.
 
  |Description = %PAGES% does not show total when count is used.
  |Status      = open
+
  |Status      = answered
 
}}
 
}}
  

Revision as of 22:42, 25 February 2008

Description: %PAGES% does not show total when count is used.
Extension / Version: DPL   /   ?
Type / Status: Change Request   /   answered

Problem

When using the 'count' parameter, %PAGES% only shows the number of rows retrieved, not the total number of pages in the query.

Could it use SQL_CALC_FOUND_ROWS and FOUND_ROWS() to retrieve the total? This would allow "Showing xx pages of yyyy" style headings.

Or am I just doing something wrong?

Cheers,

 David.

Reply

Indeed this is a known flaw. I wasn´t aware of the variables or functions you are mentionig. Could you send me a patch how to do it. I would then publish a new release ...

Gero 22:42, 25 February 2008 (CET)