Go to file
Daniel Kinzler 8855dc9a18 Fixes for CategoryTreeExtension: Implemented dynamic load with hide-root,
postpone on-demand JS/CSS until ParserOutput supports it. Fixed some glitches.
2006-07-29 09:18:34 +00:00
CategoryTree.css Adding Ajax based CategoryTree extension. 2006-07-26 17:12:30 +00:00
CategoryTree.i18n.ca.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.cs.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.da.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.de.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.es.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.fr.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.hr.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.hu.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.it.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.nl.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.no.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.php Adding Ajax based CategoryTree extension. 2006-07-26 17:12:30 +00:00
CategoryTree.i18n.pl.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.pt.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.ru.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.sk.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.sq.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.sv.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.th.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.tr.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.vi.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.zh-cn.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.zh-yue.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.i18n.zh.php Always use <?php rather than <? for compatibility when short open tags are disabled 2006-07-27 02:34:08 +00:00
CategoryTree.js Fixes for CategoryTreeExtension: Implemented dynamic load with hide-root, 2006-07-29 09:18:34 +00:00
CategoryTree.php Fixes for CategoryTreeExtension: Implemented dynamic load with hide-root, 2006-07-29 09:18:34 +00:00
CategoryTreeFunctions.php Fixes for CategoryTreeExtension: Implemented dynamic load with hide-root, 2006-07-29 09:18:34 +00:00
CategoryTreePage.php Fixes for CategoryTreeExtension: Implemented dynamic load with hide-root, 2006-07-29 09:18:34 +00:00
README added $wgCategoryTreeDynamicTag option 2006-07-28 16:07:55 +00:00

--------------------------------------------------------------------------
README for the CategoryTree extesion
Copyright © 2006 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.


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

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

  $wgUseAjax = true;
  require_once( 'extenstions/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 two ways: as a "custom tag" to show a category
structure inline on a wiki page, and as a special page.

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.

The custom tag is called <categorytree>. For example, if you put
<categorytree>Foo</categorytree> on a wiki page, it will show the contents
of category Foo as a dynamic tree on that page. The tag accepts three
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.
             
* mode - can be "categories" (the default), "pages" or "all". "categories"
         only lists subcategories; "pages" lists all pages in the category
         except images; "all" shows all pages in the category.
         
* style - can be used to specify any CSS styles you would like for the
          tree.
          
          
OPTIONS
--------------------------------------------------------------------------

There are some options you can spefify 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.

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