MediaWiki:Sidebar: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
$wgHooks['BeforePageDisplay'][] = 'wfAddSidebarTree';
function wfAddSidebarTree( $out, $skin ) {
$title = Title::newFromText( 'SidebarTree', NS_MEDIAWIKI );
$article = new Article( $title );
$html = $out->parse( $article->getContent() );
$out->addHTML( "<div id=\"wikitext-sidebar\">$html</div>" );
return true;
}
{{#tree:
{{#tree:
*Wiki First Steps
*Wiki First Steps

Revision as of 20:10, 24 July 2016

help