Talk:Manual - DPL parameters: Controlling output order

From FollowTheScore
Jump to: navigation, search

Sorting issue

Question

Hopefully some admin is checking RecentChanges and will notice this; I'm from the Dungeons and Dragons wiki and we can't seem to get our lists to sort all the articles in the SRD namespace to anything but S, even if the category tags on the pages in question are in the format of. This particular page of manual says ordermethod=title will sort by prefix+title; how can we make it sort by the title without the prefix instead? Please get back to me here. --Mobius, 05:18, 25 May 2007 (CEST)

Answer

Have you tried the "sortkey" option, rather than title?

(2) I see your problem. The current version was not able to group by categories and ignore namespace at the same time. That is why you always get the "S" as a chapter letter. I added a new option in the latest revision (1.1.9). You need to install the latest release 1.1.9 and use 'ordermethod=titlewithoutnamespaces' like this:

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Type' for parameter 'namespace'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

sortkey issues

is it possible to sort articles by the sortkey like the page has [[Category:Africa|20]] and another one [[Zimbabwe|01]] and will display as.

  • Zimbabwe
  • Africa

And as a side note, i see that many of the DPL examples has "category,sortkey" as an order method but here the info about "category,sortkey" got replace with a headingmode stuff that directs to no where

--Cizagna (200.67.154.105 03:48, 10 July 2007 (CEST))

Answer

Thank you for bringing this up. As far as I see there is a "break;" statement missing in the main source file, immediately before "cass: 'titlewithoutnamespaces'", around line 1600. Could you add that statement and check with 'ordermethod=category,sortkey'? Please let us know if it works.

--Gero 08:40, 11 July 2007 (CEST)