[Mediawiki-l] Right hook to use for head html element?

Daniel Friesen lists at nadir-seen-fire.com
Sat Apr 30 20:37:45 UTC 2011


Use the BeforePageDisplay hook and $out->addHeadItem if there is no more
specific method for what you're trying to insert (ie: a <link>, <meta>,
<script>, <style>, etc...)

http://www.mediawiki.org/wiki/Manual:Hooks/BeforePageDisplay

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]


On 11-04-30 05:39 AM, Dorem - Jérémie Bouillon wrote:
> Hi,
>
> I'm trying to output some tags just before the </head> attribute on each 
> page generated by MW.
>
> Since I want to minimize updating headaches, I'm trying the extension 
> way. But for the life of me, I can't find the right hook or syntax.
>
> My Manual searches gave me the OutputPageBodyAttributes hook but it's 
> 1.17 only.
>
> Anyone got the right hook, or a simple syntax example?
>
> Thanks a lot.



More information about the MediaWiki-l mailing list