Last modified: 2013-03-02 20:39:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40374, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38374 - [patch] option to disallow selecting the top-level category
[patch] option to disallow selecting the top-level category
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SelectCategory (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-13 07:02 UTC by Christian Boltz
Modified: 2013-03-02 20:39 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch (for latest SVN) to implement $wgSelectCategoryToplevelAllowed (2.18 KB, patch)
2012-07-13 07:02 UTC, Christian Boltz
Details

Description Christian Boltz 2012-07-13 07:02:10 UTC
Created attachment 10846 [details]
patch (for latest SVN) to implement $wgSelectCategoryToplevelAllowed

The attached patch adds the config option $wgSelectCategoryToplevelAllowed.

If you set it to false, the checkbox for the top-level category will be hidden, so users can only select sub-categories.

The reason for implementing this is that it doesn't make sense to add a page to the top-level category in many cases. 

For example, I have the top-level category "pictures" for the File: namespace, and (nearly) all files would fit into this category. This means it doesn't make sense to categorize all uploaded files as "pictures". Instead, the users can/have to select one or more sub-category (for example "cat pictures") that matches better.
Comment 1 Andre Klapper 2012-09-12 15:49:02 UTC
Comment on attachment 10846 [details]
patch (for latest SVN) to implement $wgSelectCategoryToplevelAllowed

[Correcting MIME Type and setting patch flag]
Comment 2 Christian Boltz 2013-03-02 20:39:02 UTC
Commited to git/gerrit.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links