Hello all,
I have created a internal MediaWiki instances holding Knowledge Base articles, I am using 4 namespaces (HOWTO, INFO, RTS, TSHOOT) for holding the different types of Knowledge Base articles. Previous to 1.17 Categories where sorted alphabetically but did include the namespace in the sort, this was/is fine as it puts all like type articles together. Now post 1.17 the namespace is ignored on the sort and my categories are a mess, is it possible to either A) go back to the old method of sorting, or B) Remove the namespaces from the titles as listed in the category ? (i think this is unlikely but never hurts to ask)
TIA
Zach H.
On Fri, Aug 26, 2011 at 12:35, Zach H. luckenbach@gmail.com wrote:
Hello all,
I have created a internal MediaWiki instances holding Knowledge Base articles, I am using 4 namespaces (HOWTO, INFO, RTS, TSHOOT) for holding the different types of Knowledge Base articles. Previous to 1.17 Categories where sorted alphabetically but did include the namespace in the sort, this was/is fine as it puts all like type articles together. Now post 1.17 the namespace is ignored on the sort and my categories are a mess, is it possible to either A) go back to the old method of sorting, or B) Remove the namespaces from the titles as listed in the category ? (i think this is unlikely but never hurts to ask)
TIA
Zach H.
See comments 10, 11 and 17: https://bugzilla.wikimedia.org/show_bug.cgi?id=29680#c11
You'll need a newer MediaWiki than 1.17 (something that includes r91510 http://www.mediawiki.org/wiki/Special:Code/MediaWiki/91510) or to patch in that rev to your local copy of 1.17. (the attachment seems to apply fine with a few harmless warnings e.g. "Hunk #1 succeeded at 4236 (offset -11 lines).")
Then put these 5 lines in the bottom of LocalSettings.php
$wgHooks['GetDefaultSortkey'][] = 'wfFixSortorder'; function wfFixSortorder( $title, &$sortkey ) { $sortkey = $title->getPrefixedText(); return true; }
And run this script: http://www.mediawiki.org/wiki/Manual:RefreshLinks.php . If that doesn't fix it then try http://www.mediawiki.org/wiki/Manual:Update.php per comment 17 on that bug linked above?
No guarantee this will work (I haven't tested it) but it seems to have for the guy in that bug. As always, make a DB backup first. http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
-Jeremy
mediawiki-l@lists.wikimedia.org