diff --git a/CategoryTree.php b/CategoryTree.php index ba2cc431..16828817 100644 --- a/CategoryTree.php +++ b/CategoryTree.php @@ -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 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 diff --git a/CategoryTreeFunctions.php b/CategoryTreeFunctions.php index 32ed9288..58d4c786 100644 --- a/CategoryTreeFunctions.php +++ b/CategoryTreeFunctions.php @@ -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; diff --git a/README b/README index f87c4e02..0ef3b31f 100644 --- a/README +++ b/README @@ -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 . For example, if you put Foo on a wiki page, it will show the contents