Open Bug 1072114 Opened 10 years ago Updated 10 years ago

[feature] Categories sorted and displayed by title and not path

Categories

(Websites :: wiki.mozilla.org, enhancement)

Production
enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: karlcow, Unassigned)

Details

This is not a bug, more of a feature request.

Let's take a concrete example
https://wiki.mozilla.org/Category:Web_Compatibility

This is a classical category page. I manage to change the sorting order by relying on MediaWiki feature for sorting Categories.

For example Compatibility/Guide is not under "C" but "G", because in the page I added

[[Category:Web Compatibility|Guide]]

This is cool. It would be even better if we could have displayed in the category page, the term "Guide" instead of "Compatibility/Guide". All these paths become very noisy for a reader.
This is one of the known drawbacks of using subpages to the extent we do. 

We don't have a way to modify the display of subpages with a simple change of configuration options.

There might be an extension that can be made to do this, such as Semantic Mediawiki[1] or DynamicPageList[2]. We'll have to do some research.

Regarding the sort order, you can use {{DEFAULTSORTKEY}} magic word in conjunction with {{SUBPAGENAME}}. Adding {{DEFAULTSORTKEY:{{SUBPAGENAME}}}} to any page or template will set the sort key to just subpage. Same with [[Category:CategoryName|{{SUBPAGENAME}}]].

[1] http://smw.referata.com/wiki/Replace_list_of_pages_in_a_Category_by_a_semantic_query
[2] http://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29
Severity: normal → enhancement
OS: Mac OS X → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.