Change SiteNotice after article content is loaded?

Jump to: navigation, search

Hi! I'm writing a little extension with two principal functions. The first one is a parser function that is called in the article and writes data into a global array instead of generating any direct output. The second one should display the content of the array in the sitenotice. I tried to use the SiteNoticeAfter hook, but it is run before the article is loaded and so, before the parser functions in the article can fill the array. Is it possible to change the content of the SiteNotice after the article is loaded/the parser functions in the article are run?

Harmageddon09:47, 24 January 2012

I did something similar using a hook on ArticleAfterFetchContent to store the $content data into a private variable I put into the extension class, then called $this->myVar in the SiteNoticeAfter. Worked fine for me, though I'm using 1.17.1 - not sure if that makes a difference.

65.189.246.16005:44, 20 February 2012
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox