Difference between revisions of "WSU Technology Knowledge Base"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ] | * [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ] | ||
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list] | * [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list] | ||
+ | |||
+ | /* Change the main page url used in things like the logo to a url of another page on the wiki */ | ||
+ | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; | ||
+ | function lfChangeMainPageURL( $sk, &$tpl ) { | ||
+ | $tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url | ||
+ | return true; | ||
+ | } |
Revision as of 20:46, 18 January 2012
MediaWiki has been successfully installed.
Consult the User's Guide for information on using the wiki software.
Getting started
/* Change the main page url used in things like the logo to a url of another page on the wiki */ $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; function lfChangeMainPageURL( $sk, &$tpl ) {
$tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url return true;
}