Difference between revisions of "Issue:%PAGES% and %TOTALPAGES% won't work together"
From FollowTheScore
(added version #) |
|||
Line 2: | Line 2: | ||
|Type = Bug | |Type = Bug | ||
|Extension = DPL | |Extension = DPL | ||
− | |Version = | + | |Version = up to 1.7.7 |
|Description = Can't use %PAGES% together with %TOTALPAGES% | |Description = Can't use %PAGES% together with %TOTALPAGES% | ||
|Status = closed | |Status = closed | ||
Line 48: | Line 48: | ||
== Reply == | == Reply == | ||
− | In fact there was a bug in DPL; sometimes %PAGES% showed the total number of pages instead of the ''actual'' number of pages contained in the result set. This was fixed. Your example now always shows the correct values. [[User:Gero|Gero]] 14:27, 14 May 2009 (UTC) | + | In fact there was a bug in DPL; sometimes %PAGES% showed the total number of pages instead of the ''actual'' number of pages contained in the result set. This was fixed in version 1.7.8. Your example now always shows the correct values. [[User:Gero|Gero]] 14:27, 14 May 2009 (UTC) |
Latest revision as of 04:56, 14 April 2010
Description: | Can't use %PAGES% together with %TOTALPAGES% |
Extension / Version: | DPL / up to 1.7.7 |
Type / Status: | Bug / closed |
Problem
Why does it not work? I need that for a navigation template reading: "%PAGES% displayed (out of %TOTALPAGES% results)"
{{#dpl: |category=Category |count=5 |resultsheader=pages: %PAGES% - totalpages: %TOTALPAGES% }} |
{{#dpl: |category=Category |count=5 |resultsheader=pages: %PAGES% }} |
{{#dpl: |category=Category |count=5 |resultsheader=totalpages: %TOTALPAGES% }} |
pages: 5 - totalpages: 9 | pages: 5 | totalpages: 9 |
--Subfader 17:52, 1 May 2009 (UTC)
Reply
In fact there was a bug in DPL; sometimes %PAGES% showed the total number of pages instead of the actual number of pages contained in the result set. This was fixed in version 1.7.8. Your example now always shows the correct values. Gero 14:27, 14 May 2009 (UTC)