Issue:%PAGES% and %TOTALPAGES% won't work together
From FollowTheScore
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)