Page MenuHomePhabricator

Make CategoryTree useful without JavaScript
Open, MediumPublicFeature

Description

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:

Details

Reference
bz46775

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:34 AM
bzimport set Reference to bz46775.
bzimport added a subscriber: Unknown Object (MLST).

nick.white wrote:

0002-Add-config-variable-to-disable-javascript-interface.patch

Attached:

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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.