MediaWiki:Mainpage: Difference between revisions
Jump to navigation
Jump to search
(Redirected page to Epic Path) |
No edit summary |
||
Line 1: | Line 1: | ||
#REDIRECT [[Epic Path]] | #REDIRECT [[Epic Path]] | ||
/* 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('Epic Path')->getLocalURL(); // Point the main page url to a wiki page's url | |||
return true; | |||
} |
Revision as of 12:29, 30 March 2016
Redirect to:
/* 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('Epic Path')->getLocalURL(); // Point the main page url to a wiki page's url return true; }