Difference between revisions of "Talk:DPL Example 027"
From FollowTheScore
Line 15: | Line 15: | ||
:::On other queries using %TOTALPAGES% in the header, there is no header displayed. See [http://www.mixesdb.com/db/index.php/MixesDB:Tests/Test_3 here]. --[[User:Subfader|Subfader]] 09:16, 6 July 2009 (UTC) | :::On other queries using %TOTALPAGES% in the header, there is no header displayed. See [http://www.mixesdb.com/db/index.php/MixesDB:Tests/Test_3 here]. --[[User:Subfader|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? [[User:Gero|Gero]] 14:37, 6 July 2009 (UTC) |
Revision as of 15:37, 6 July 2009
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)
- 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)