Difference between revisions of "Talk:DPL Example 027"

From FollowTheScore
Jump to: navigation, search
(TOTALPAGES = 1)
Line 11: Line 11:
 
:%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...
 
:%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% ?
 
: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. --[[User:Subfader|Subfader]] 07:01, 6 July 2009 (UTC)

Revision as of 09:01, 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)