Last modified: 2013-07-25 09:01:44 UTC
Created attachment 12013 [details] 0001-Allow-depth-to-be-used-in-category-pages.patch Using the 'depth' option, CategoryTree could be quite useful even without the javascript functionality. For my site I want to display the subcategory hierarchies on category pages, and it's more usable if it's all expanded by default. The level of usability of this varies according to how many categories will be likely to be displayed at once, but certainly for smallish sites like mine it's a big win for usability. It should be an option, anyway. Attached are two patches: - Allow-depth-to-be-used-in-category-pages.patch: this allows the 'depth' function to be set for category pages, e.g. with this in LocalSettings.php $wgCategoryTreeCategoryPageOptions = array('mode' => 'all', 'depth' => 4, 'showcount' => 'off'); - Add-config-variable-to-disable-javascript-interface.patch: this adds an option $wgCategoryTreeDisableScript that disables all of the javascript loading. Taken together, these patches enable the above workflow, where category pages show subcategory hierarchies immediately, without any javascript. I find it useful, and I reckon others would too, so I think these patches should be applied.
Created attachment 12014 [details] 0002-Add-config-variable-to-disable-javascript-interface.patch
Hi! Thanks for your patch! You are welcome to use Developer access https://www.mediawiki.org/wiki/Developer_access to submit this as a Git branch directly into Gerrit: https://www.mediawiki.org/wiki/Git/Tutorial Putting your branch in Git makes it easier to review it quickly. Thanks again! We appreciate your contribution.
Done; see https://gerrit.wikimedia.org/r/57041
Thanks!