mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 17:51:00 +00:00
$wgCategoryTreeUnifiedView = true per default; use "#" for dummy url; updated documentation
This commit is contained in:
parent
fbbdd134c8
commit
1df9698baa
|
@ -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
|
||||
|
|
|
@ -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
5
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 <categorytree>. For example, if you put
|
||||
<categorytree>Foo</categorytree> on a wiki page, it will show the contents
|
||||
|
|
Loading…
Reference in a new issue