Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kbooz/CategoryTreeMod

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 

Repository files navigation

#CategoryTreeMod

Added some features to the Mediawiki's extension Category Tree, for Mediawiki 1.22+, based on Cornucopia's modifications

It 'heavily' uses localStorage, so, please, check your browser's support

Features

  • Remember opened nodes
  • Remember the last link clicked

#Instalation

  1. Install latest Category Tree

Follow Category Tree's page for instructions

  1. Backup Category Tree's javascript

Navigate to /modules/, and rename ext.categoryTree.js to ext.categoryTree.js.bak

  1. Clone this project:
$git clone https://github.com/kbooz/CategoryTreeMod.git
  1. Modify 'expand' constant to your Mediawiki's language: If your Mediawiki is in another language i.e.: portuguese, spanish, italian..., you'll need to change a simple line, or else it'll break your extension

4a. Navigate to , open ext.categoryTree.js in your text editor

4b. Locate this line: line 13, probably

```javascript
const expand = 'expand'; // expand text in l18n
```

4c. Modify to your Mediawiki's language:

  const expand = 'expandir'; // expand text in l18n
  1. Copy the mod into CategoryTree's modules directory

  2. Edit Mediawiki:Common.css: Add and customize this class:

.CategoryTreeLabelLast {font-weight: bold; }

Presto!

##To-do

  • Eliminate 4 step, by using CategoryTree's Localisation
  • Correct text errors

About

Added some features to the Mediawiki's extension javascript Category Tree, for Mediawiki 1.22+, based on Cornucopia's modifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.