Universal-Omega / DynamicPageList3

GNU General Public License v3.0
18 stars 22 forks source link

sorting results by title does not honour {{DISPLAYTITLE}} #211

Open jrbray1 opened 1 year ago

jrbray1 commented 1 year ago

DynamicPageList3 version: 3.4.6 MediaWiki version: 1.35.8 PHP version: 7.4.3

{{#dpl:
| debug=1
| linksto={{PAGENAME}}
| ordermethod=title
| redirects=exclude
| suppresserrors=true
| namespace=
}}

shows results sorted by page name, not the {{DISPLAYTITLE:title}}. Extension DisplayTitle is being used

jrbray1 commented 7 months ago

Still a problem. I see that sister project SubPageList3 does not have this problem, so I would hope a solution is easy

Universal-Omega commented 7 months ago

I'll look into this this next week.

jrbray1 commented 7 months ago

Have you had a chance to look at this?

John

On Sat, 27 Jan 2024 at 09:45, CosmicAlpha @.***> wrote:

I'll look into this this next week.

— Reply to this email directly, view it on GitHub https://github.com/Universal-Omega/DynamicPageList3/issues/211#issuecomment-1913097510, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGE3HVLRVILK3VUTNIHGN23YQTEEBAVCNFSM6AAAAAASTNAASSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGA4TONJRGA . You are receiving this because you authored the thread.Message ID: @.***>

Universal-Omega commented 7 months ago

Have you had a chance to look at this? John On Sat, 27 Jan 2024 at 09:45, CosmicAlpha @.> wrote: I'll look into this this next week. — Reply to this email directly, view it on GitHub <#211 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGE3HVLRVILK3VUTNIHGN23YQTEEBAVCNFSM6AAAAAASTNAASSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGA4TONJRGA . You are receiving this because you authored the thread.Message ID: @.>

I did a little bit, unfortunately I could not track the exact cause of this yet.

jrbray1 commented 5 months ago

Does the sort occur on the page name, or the final formatted text line? If it could be made the latter, I could use {{#getdisplaytitle:}} inside a format statement to provide the order I wanted.

jrbray1 commented 1 month ago

Adding category= to the selection criteria often gets the pages in the right order. Fortunately my site is script generated so it was straightforward to add a fake hidden category to all pages. See https://warlike.info