On 03/02/13 13:40, Tom Hutchison wrote:
Sorry for not being clear, print/export, print version
link. Seems
like everything else dynamic is unaffected, Toolbox links, etc. just
the printable version link becomes static.
Using {{PAGENAME}} etc. in MediaWiki:Sidebar will not work if you
enable the sidebar cache, since the sidebar cache varies only on user
language, it doesn't try to work out what data you may have pulled in
via parser variables.
Instead, you may wish to add your link to the toolbox, by adding a
BaseTemplateToolbox hook. It can be done in LocalSettings.php:
function localBaseTemplateToolbox( &$tpl, &$toolbox ) {
$toolbox['print_version'] = array(
'text' => 'Print version',
'href' => $tpl->getSkin()->getTitle()->getLocalURL( ... )
);
return true;
}
$wgHooks['BaseTemplateToolbox'][] = 'localBaseTemplateToolbox';
-- Tim Starling