Issue:DPL ordermethod multiple params

From FollowTheScore
Revision as of 10:30, 1 September 2008 by Xiong (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description: ordermethod multiple params confuses order; also a headingmode issue
Extension / Version: DPL   /   2.i18n
Type / Status: Bug   /   open

Problem

I want a terse "Recent Changes" list: the last edited 15 pages of any kind. I'd prefer not to have the date next to each page; rather, one date heading for each group of pages last edited on the same date.

My reading of the manual suggests that the following code should do that:

 
<DPL>
	notcategory=foobar
	count=15
	ordermethod = lastedit,title
	order       = descending
	headingmode = H4
	addeditdate = true
	userdateformat=Y M d:
	mode=ordered
</DPL>

No page is in Category:Foobar so this should select all pages. I don't really require a second level of sort but headingmode is advertised as requiring one, so I specify title. Here is what I get:

http://www.beyondeuclid.com/wiki/User:Bear/Sandbox

No H4 headers are produced and it seems that order = descending is ignored -- indeed, reversed. Output pages are the oldest, not the newest.

If I remove title, so ordermethod = lastedit only, then order = descending is respected but a warning is reported, since headingmode demands the second level of sort. If I remove headingmode, then everyhing works as expected but of course, I still don't get the desired date headers.

My wiki version is 1.12.0. I have not created the "special view" in MySQL; no error has been raised about this.

Other than this issue, DPL appears to work very well.

Please feel free to create an account on my wiki and experiment.

Reply