https://bugzilla.wikimedia.org/show_bug.cgi?id=46775

       Web browser: ---
            Bug ID: 46775
           Summary: Make CategoryTree useful without JavaScript
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Unprioritized
         Component: CategoryTree
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 12013
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=12013&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to