Well, I have written a small extension that provides a simple API to store custom data in the ParserOutput object and in the QuickTemplate object. In order to make use of it, I would like to have a hook in SkinTemplate.php right before the QuickTemplate is executed. Therefore, I had to patch SkinTemplate.php for getting the hook. See http://wikivoyage.org/tech/CustomData-Extension for detailed explanation.
Hans
Am Dienstag 09 Januar 2007 00:16 schrieb Hans Musil:
Well, I have written a small extension that provides a simple API to store custom data in the ParserOutput object and in the QuickTemplate object. In order to make use of it, I would like to have a hook in SkinTemplate.php right before the QuickTemplate is executed. Therefore, I had to patch SkinTemplate.php for getting the hook. See http://wikivoyage.org/tech/CustomData-Extension for detailed explanation.
I have added this hook at the place where the patch did (http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=19063). My version doesn't pass $wgOut because you should use it directly by globaling it in the extension function.
Changed state of that thread to RESOLVED FIXED ;-)
-- Leon.
wikitech-l@lists.wikimedia.org