$wgCategoryTreeUnifiedView = true per default; use "#" for dummy url; updated documentation

This commit is contained in:
Daniel Kinzler 2006-09-03 11:26:57 +00:00
parent fbbdd134c8
commit 1df9698baa
3 changed files with 6 additions and 4 deletions

View file

@ -33,13 +33,14 @@ define('CT_MODE_ALL', 20);
* 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.
* $wgCategoryTreeUseCache - enable HTTP cache for anon users. Default is false.
* $wgCategoryTreeUnifiedView - use unified view on category pages, instead of "tree" or "traditional list". Default is true.
*/
$wgCategoryTreeMaxChildren = 200;
$wgCategoryTreeAllowTag = true;
$wgCategoryTreeDisableCache = true;
$wgCategoryTreeDynamicTag = false;
$wgCategoryTreeHTTPCache = false;
$wgCategoryTreeUnifiedView = false;
$wgCategoryTreeUnifiedView = true;
/**
* Register extension setup hook and credits

View file

@ -299,7 +299,7 @@ class CategoryTree {
if ( ( $ns % 2 ) > 0 ) $labelClass .= ' CategoryTreeLabelTalk';
$linkattr= array( 'href' => 'javascript:void(0)' );
$linkattr= array( 'href' => '#' );
if ( $load ) $linkattr[ 'id' ] = $load;

5
README
View file

@ -43,8 +43,9 @@ 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 traditional multi column list view is available on
demand.
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>Foo</categorytree> on a wiki page, it will show the contents