Talk:DPL Example 027

From FollowTheScore
Revision as of 17:05, 6 July 2009 by Subfader (talk | contribs) (TOTALPAGES = 1)
Jump to: navigation, search

Offset + 1 on next page

The next page lists the last of the previous on top. This looks wrong. No need to reply if this is part of the super-light strategy, but it makes count = 1 impossible. ;) --Subfader 20:57, 5 July 2009 (UTC)

urlencode

From at least MW 1.14 it is {{urlencode: not {{#urlencode: --Subfader 21:08, 5 July 2009 (UTC)

TOTALPAGES = 1

%TOTALPAGES% always returns 1 in the header or footer for me. I guess you fixed it already sinec it's working here and I use the latest 1.8.6. --Subfader 06:15, 6 July 2009 (UTC)

The dpldemo website runs exactly the version that is in the DOWNLOAD area.
%TOTALPAGES% is only calculated if needed (use debug=3 to see the SQL statement) as it may cost additional CPU load. DPL checks if %TOTALPAGES% is used within header or footer. Maybe there is aproblem with that code...
Where exactly do you get the "1" for %TOTALPAGES% ?
I get it in the footer and header. E.g. (25 listed / 1) [using "if total > pages" meanwhile], but laso when I use %TOTALPAGES% before the links template. Therefor the links don't work as desired. --Subfader 07:01, 6 July 2009 (UTC)
On other queries using %TOTALPAGES% in the header, there is no header displayed. See here. --Subfader 09:16, 6 July 2009 (UTC)


Does debug= 3 show SELECT SQL_CALC_FOUND_ROWS DISTINCT as the first part of the SQL statement? Gero 14:37, 6 July 2009 (UTC)
Yep. I enabled debug now. --Subfader 16:05, 6 July 2009 (UTC)