#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
- Remember opened nodes
- Remember the last link clicked
#Instalation
- Install latest Category Tree
Follow Category Tree's page for instructions
- Backup Category Tree's javascript
Navigate to /modules/, and rename ext.categoryTree.js to ext.categoryTree.js.bak
- Clone this project:
$git clone https://github.com/kbooz/CategoryTreeMod.git
- 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
-
Copy the mod into CategoryTree's modules directory
-
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