Go to file
2008-01-16 00:06:16 +00:00
CategoryPageSubclass.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.css introducing onlyroot option (and removing obsolete email address) 2007-03-13 11:39:12 +00:00
CategoryTree.i18n.af.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.am.php Localisation updates from Betawiki. 2007-09-28 08:59:16 +00:00
CategoryTree.i18n.an.php Localisation updates for extension messages from Betawiki (2008-01-03 23:09 CET) 2008-01-03 22:34:13 +00:00
CategoryTree.i18n.ar.php Localisation updates for extensions from Betawiki (2007-12-21 23:45 CET) 2007-12-21 23:46:08 +00:00
CategoryTree.i18n.ast.php Localisation updates for extension messages from Betawiki (2008-01-07 22:55 CET) 2008-01-07 22:29:56 +00:00
CategoryTree.i18n.bcl.php Localisation updates from Betawiki. 2007-10-15 20:47:54 +00:00
CategoryTree.i18n.bg.php Localisation updates for extensions from Betawiki (2007-12-31 19:00 UTC) 2007-12-31 23:34:06 +00:00
CategoryTree.i18n.br.php Localisation updates from Betawiki (2007-12-17 0:15 CET). 2007-12-16 23:54:39 +00:00
CategoryTree.i18n.bs.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.ca.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.cdo.php * (Bug 12102) Add Min Dong localisation and its extension messages 2007-11-26 11:56:55 +00:00
CategoryTree.i18n.co.php Localisation updates from Betawiki. 2007-12-08 12:45:20 +00:00
CategoryTree.i18n.cs.php Localisation updates from Betawiki. 2007-11-14 23:13:09 +00:00
CategoryTree.i18n.da.php Localisation updates for extension messages from Betawiki (2008-01-10 0:38 CET) 2008-01-10 00:05:23 +00:00
CategoryTree.i18n.de.php * Updates German 2007-11-12 08:34:21 +00:00
CategoryTree.i18n.diq.php Localisation updates from Betawiki. 2007-12-15 13:48:18 +00:00
CategoryTree.i18n.el.php Localisation updates for extension messages from Betawiki (2007-12-28 16.52 CET) 2007-12-28 17:17:03 +00:00
CategoryTree.i18n.eo.php Translation update 2007-11-11 13:44:38 +00:00
CategoryTree.i18n.es.php Localisation updates from Betawiki. 2007-11-10 18:15:02 +00:00
CategoryTree.i18n.et.php Localisation updates from Betawiki. 2007-11-27 09:49:24 +00:00
CategoryTree.i18n.eu.php Localisation updates from Betawiki. 2007-11-19 08:35:48 +00:00
CategoryTree.i18n.ext.php Localisation updates from Betawiki. 2007-10-06 20:43:13 +00:00
CategoryTree.i18n.fa.php Localisation updates from Betawiki. 2007-11-04 18:45:55 +00:00
CategoryTree.i18n.fi.php Localisation updates from Betawiki. 2007-12-16 10:00:20 +00:00
CategoryTree.i18n.fo.php Localisation updates from Betawiki. 2007-10-20 17:34:25 +00:00
CategoryTree.i18n.fr.php Localisation updates from Betawiki. 2007-11-04 20:08:37 +00:00
CategoryTree.i18n.frp.php Localisation updates from Betawiki. 2007-11-04 18:45:55 +00:00
CategoryTree.i18n.gl.php Localisation updates from Betawiki. 2007-10-28 23:55:11 +00:00
CategoryTree.i18n.gu.php Localisation updates for extension messages from Betawiki 2007-12-28 11:21:50 +00:00
CategoryTree.i18n.hak.php Localisation updates from Betawiki. 2007-09-19 14:30:16 +00:00
CategoryTree.i18n.he.php Various fixes. 2007-11-05 19:10:58 +00:00
CategoryTree.i18n.hr.php Localisation updates from Betawiki. 2007-11-19 08:35:48 +00:00
CategoryTree.i18n.hsb.php Localisation updates from Betawiki. 2007-09-23 11:08:02 +00:00
CategoryTree.i18n.hu.php Localisation updates for extension messages from Betawiki (2008-01-05 9:43 CET) 2008-01-05 09:04:03 +00:00
CategoryTree.i18n.hy.php Localisation updates from Betawiki. 2007-10-08 07:11:40 +00:00
CategoryTree.i18n.id.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.io.php Localisation updates from Betawiki. 2007-11-25 15:17:41 +00:00
CategoryTree.i18n.is.php Localisation updates from Betawiki. 2007-10-28 23:55:11 +00:00
CategoryTree.i18n.it.php Localisation updates for extension messages from Betawiki (2008-01-02 18:22 CET) 2008-01-02 18:46:40 +00:00
CategoryTree.i18n.ja.php Localisation updates from Betawiki. 2007-11-07 13:40:24 +00:00
CategoryTree.i18n.kaa.php Localisation updates from Betawiki. 2007-11-20 07:42:33 +00:00
CategoryTree.i18n.kk-arab.php * (bug 7971) Update Kazakh translations for extensions 2008-01-12 07:24:17 +00:00
CategoryTree.i18n.kk-cn.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.kk-cyrl.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.kk-kz.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.kk-latn.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.kk-tr.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.kk.php * (bug 7971) Update Kazakh extension translations 2007-12-20 20:18:45 +00:00
CategoryTree.i18n.ku.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.la.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.lb.php Localisation updates for extension messages from Betawiki (2008-01-08 17:05 CET) 2008-01-08 17:26:21 +00:00
CategoryTree.i18n.li.php Localisation updates for extension messages from Betawiki (2008-01-05 11:56 CET) 2008-01-06 11:16:11 +00:00
CategoryTree.i18n.lo.php * (bug 10713) Message file for Lao language (lo) 2007-07-30 12:16:23 +00:00
CategoryTree.i18n.lt.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.ms.php * (bug 12018) Add Malay translation 2007-11-19 12:17:56 +00:00
CategoryTree.i18n.myv.php Localisation updates for extension messages from Betawiki (2008-01-16 0:44 CET) 2008-01-16 00:06:16 +00:00
CategoryTree.i18n.nan.php * (bug 11494) Minnan localisation 2007-10-08 19:23:12 +00:00
CategoryTree.i18n.nds.php Localisation updates from Betawiki. 2007-09-30 12:58:32 +00:00
CategoryTree.i18n.nl.php Localisation updates from Betawiki. 2007-11-23 10:00:57 +00:00
CategoryTree.i18n.nn.php Localisation updates for extension messages from Betawiki (2008-01-10 0:38 CET) 2008-01-10 00:05:23 +00:00
CategoryTree.i18n.no.php Localisation updates from Betawiki. 2007-10-20 17:34:25 +00:00
CategoryTree.i18n.oc.php Localisation updates from Betawiki. 2007-11-13 23:04:16 +00:00
CategoryTree.i18n.pag.php Localisation updates for extension messages from Betawiki (2008-01-12 17:18 CET) 2008-01-12 16:46:25 +00:00
CategoryTree.i18n.php * (bug 11015) Handle HTTP errors for CategoryTree ajax request more gracefully. Instead of dumping the entire error page's HTML inline, display a nice clean bit of text with a functional retry link. 2007-08-25 15:23:20 +00:00
CategoryTree.i18n.pl.php Localisation updates from Betawiki. 2007-11-20 22:48:36 +00:00
CategoryTree.i18n.pms.php Localisation updates from Betawiki. 2007-10-28 23:55:11 +00:00
CategoryTree.i18n.pt.php Localisation updates for extension messages from Betawiki (2007-12-27 12:05 CET) 2007-12-27 11:51:22 +00:00
CategoryTree.i18n.ro.php Localisation updates from Betawiki. 2007-12-09 22:48:21 +00:00
CategoryTree.i18n.ru.php Localisation updates for extensions from Betawiki (2007-12-21 23:45 CET) 2007-12-21 23:46:08 +00:00
CategoryTree.i18n.sdc.php Localisation updates for extensions from Betawiki (2007-12-21 23:45 CET) 2007-12-21 23:46:08 +00:00
CategoryTree.i18n.sk.php Localisation updates for extension messages from Betawiki (2008-01-13 23:37 CET) 2008-01-13 22:55:03 +00:00
CategoryTree.i18n.sl.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.sq.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.sr-ec.php Localisation updates for extension messages from Betawiki (2008-01-08 17:05 CET) 2008-01-08 17:26:21 +00:00
CategoryTree.i18n.stq.php Localisation updates from Betawiki. 2007-12-11 22:38:12 +00:00
CategoryTree.i18n.sv.php Localisation updates for extension messages from Betawiki (2007-12-25 11:35 CET) 2007-12-25 11:26:44 +00:00
CategoryTree.i18n.th.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.to.php Localisation updates from Betawiki (2007-12-20 23:25 CET). 2007-12-20 22:50:57 +00:00
CategoryTree.i18n.tr.php Localisation updates for extension messages from Betawiki (2008-01-10 0:38 CET) 2008-01-10 00:05:23 +00:00
CategoryTree.i18n.ur.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.vi.php Extensions too! 2007-06-29 01:36:09 +00:00
CategoryTree.i18n.vo.php Localisation updates for extension messages from Betawiki (2008-01-12 17:18 CET) 2008-01-12 16:46:25 +00:00
CategoryTree.i18n.wuu.php * Wu translations 2007-12-02 14:49:27 +00:00
CategoryTree.i18n.yue.php Localisation updates from Betawiki. 2007-12-03 19:31:20 +00:00
CategoryTree.i18n.zh-cn.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 12:40:38 +00:00
CategoryTree.i18n.zh-hans.php Localisation updates from Betawiki. 2007-12-03 19:31:20 +00:00
CategoryTree.i18n.zh-hant.php Localisation updates from Betawiki. 2007-12-03 19:31:20 +00:00
CategoryTree.i18n.zh-hk.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 12:40:38 +00:00
CategoryTree.i18n.zh-min-nan.php * (bug 11494) Minnan localisation 2007-10-08 19:23:12 +00:00
CategoryTree.i18n.zh-sg.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 12:40:38 +00:00
CategoryTree.i18n.zh-tw.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 12:40:38 +00:00
CategoryTree.i18n.zh-yue.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 17:26:45 +00:00
CategoryTree.i18n.zh.php * (bug 10426) Localisation update for various extensions (zho series) 2007-07-05 12:40:38 +00:00
CategoryTree.js * (bug 11015) Handle HTTP errors for CategoryTree ajax request more gracefully. Instead of dumping the entire error page's HTML inline, display a nice clean bit of text with a functional retry link. 2007-08-25 15:23:20 +00:00
CategoryTree.php revert r28306, r28308, r28309, r28312 2007-12-16 18:45:23 +00:00
CategoryTree.rtl.css Fixing the category tree margin in RTL. 2006-09-02 11:11:20 +00:00
CategoryTreeFunctions.php (bug 12608) Unifying the spelling of getDBkey() in the extension code. 2008-01-14 10:09:08 +00:00
CategoryTreePage.php bug 7653 -- only do transformations on header message in rendering, not at message load, so it don't break templates :D 2007-08-25 13:23:26 +00:00
install.settings adding settings patch file for experimental installer to CategoryTree 2006-07-30 21:09:52 +00:00
README oops ;) 2007-09-21 12:47:05 +00:00

--------------------------------------------------------------------------
README for the CategoryTree extension
Copyright © 2006-2007 Daniel Kinzler
Licenses: GNU General Public Licence (GPL)
          GNU Free Documentation License (GFDL)
--------------------------------------------------------------------------

The CategoryTree extension provides a dynamic view of the wiki's category
structure as a tree. It uses AJAX to load parts of the tree on demand.

<http://meta.wikimedia.org/wiki/CategoryTree_extension>

The CategoryTree extension was originally written by Daniel Kinzler in
2006 and is released under the GNU General Public Licence (GPL). The 
internationalization files contain contributions by several people;
they are mentioned in each file individually. Also thanks to Tim Starling
for his contributions.


INSTALLING
--------------------------------------------------------------------------

Copy the CategoryTree directory into the extensions folder of your 
MediaWiki installation. Then add the following lines to your
LocalSettings.php file (near the end):

  $wgUseAjax = true;
  require_once( "{$IP}/extensions/CategoryTree/CategoryTree.php" );
  
Note that $wgUseAjax = true; will enable the Ajax framework in MediaWiki,
which is required by the CategoryTree extension. Ajax is a term for using
JavaScript to load parts of a page on demand. It is supported by all
recent graphic web browsers. For more information about Ajax see
<http://en.wikipedia.org/wiki/Ajax_%28programming%29>.


USAGE
--------------------------------------------------------------------------

CategoryTree can be used in three ways: directly on the category pages,
as a "custom tag" to show a category structure inline on a wiki page, 
and as a special page.

The CategoryTree extension replaces the subcategory section of category
pages with a dynamic tree view. If Javascript is disabled, this appears
as a plain list. The dynamic subcategory entries can be disabled using
the URL parameter "notree" - this is intended for bots that rely on
parsing the HTML of category pages.

The custom tag is called <categorytree>. For example, if you put
<categorytree mode="pages">Foo</categorytree> on a wiki page, it will show
the contents of category Foo as a dynamic tree on that page. The tag accepts
the following attributes, using a HTML-like syntax:

* hideroot - set this to "on" to hide the "root" node of the tree, i.e.
             the mention of category Foo from the example.
             
* onlyroot - set this to "on" show only the "root" node of the tree initially
             
* mode - can be "categories", "pages" or "all". See the Modes section below.
         The default for this attribute is controlled by 
         $wgCategoryTreeDefaultMode, and is initially set to CT_MODE_CATEGORIES,
         the equivalent of setting the mode attribute to "categories".
         
* style - can be used to specify any CSS styles you would like for the
          tree.

Alternatively to the <categorytree> tag, parser-function syntax can also be
used, e.g {{#categorytree:Foo|hideroot=yes}}. This syntax allows the use of
magic variables, templates and template parameters for the category name.

The special page is called Special:CategoryTree; there you can enter the
name of a category and then browse it's content. The CategoryTree
extension also adds a tab for this special page to every category page.

          
MODES
--------------------------------------------------------------------------

The category tree can be shown in different modes, determining what types of
"leaves" the "tree" has:
* categories (constant CT_MODE_CATEGORIES): show subcategories only
* pages (constant CT_MODE_PAGES): show subcategories and pages, except images
* all (constant CT_MODE_ALL): show all pages, subcategories, images, etc

The CT_MODE_XXX constants can be used with configuration optiosn (see below).

OPTIONS
--------------------------------------------------------------------------

There are some options you can specify in your LocalSettings.php file:

$wgCategoryTreeMaxChildren - maximum number of children shown in a tree
                             node. Default is 200
                             
$wgCategoryTreeAllowTag - enable <categorytree> tag. Default is true.

$wgCategoryTreeDynamicTag - loads the first level of the tree in a 
                            <categorytag> dynamically. This way, the cache
                            does not need to be disabled. Default is false
                             
$wgCategoryTreeDisableCache - disabled the parser cache for pages with a
                              <categorytree> tag. Default is true.

$wgCategoryTreeHTTPCache - enable HTTP cache for anon users. Default is
                          false.

$wgCategoryTreeOmitNamespace - never show namespace prefix. Default is
                               false. Patch contributed by Manuel Schneider
                               <manuel.schneider@wikimedia.ch>, Bug 8011

$wgCategoryMaxDepth - maximum value for depth argument; can be an integer,
                      or an associative array, mapping CT_MODE_XXX constants
                      to the maximum depth for that mode.
                      Ignored if $wgCategoryTreeDynamicTag is true. Introduced
                      by Steve Sanbeg.

$wgCategoryTreeExtPath - the (URL-) path where the extension is installed,
                      relative to $wgScriptPath, with leading "/". Default is
                      "/extensions/CategoryTree".

$wgCategoryTreeDefaultMode - the default mode to use when no mode attribute 
                      is specified in a <categorytree> tag. May be
                      CT_MODE_CATEGORIES (the default), CT_MODE_PAGES, or
                      CT_MODE_ALL.

$wgCategoryTreeCategoryPageMode - the mode to use when rendering trees on 
                      category pages. May be CT_MODE_CATEGORIES (the default),
                      CT_MODE_PAGES, or CT_MODE_ALL.

--------------------------------------------------------------------------
EOF