Topic on Project:Support desk

MediaWiki:SiteNotice and PAGENAME magic word

3
Stargy (talkcontribs)

Can I make it so it gets the page name from the current article and not the sitenotice itself?:

http://imgur.com/a/QCCnc

The very top text is the sitenotice.

I'm guessing this occurs because of caching, so how do I disable SiteNotice's caching? I added these on my LocalSettings.php:

$wgEnableParserCache = false;
$wgCachePages = false;

but it didn't work.

Stargy (talkcontribs)

Anyone?

Ciencia Al Poder (talkcontribs)

You can't do that. Sitenotice won't change per-page, and it's generated in the context of the MediaWiki:sitenotice page. You'll need to think an alternate way of doing what you want

Reply to "MediaWiki:SiteNotice and PAGENAME magic word"