Author: nick.white
Description:
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.
Version: master
Severity: enhancement
Attached: