Issue:Count and %PAGES%

From FollowTheScore
Revision as of 23:42, 25 February 2008 by Gero (talk | contribs)
Jump to: navigation, search
Description: %PAGES% does not show total when count is used.
Extension / Version: DPL   /   ?
Type / Status: Change Request   /   open

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)