Hi @all,
Actually I am trying to comprehend how the article text within monobook.php is filled for the actually chosen article.
I've seen that it is processed by this line of code: <?php $this->html('bodytext') ?>
Furthermore I found the definition of the function 'html' in SkinTemplate.php function html( $str ) { echo $this->data[$str]; }
...the way the filling of the array 'data' is defined (SkinTemplate.php) function setRef($name, &$value) { $this->data[$name] =& $value; }
...and the call of the function setRef (SkinTemplate.php) $tpl->setRef( 'bodytext', $out->mBodytext );
What I actually don't understand is the way the article content is allocated to mBodytext. The only sequence I found where some content is allocated to mBodytext is the following line, which only contains the footer. $out->mBodytext .= $printfooter ;
Thanks for your feedback
greets magggus
On 22/06/2009, at 10:53 AM, magggus wrote:
What I actually don't understand is the way the article content is allocated to mBodytext. The only sequence I found where some content is allocated to mBodytext is the following line, which only contains the footer. $out->mBodytext .= $printfooter ;
See OutputPage::addHTML, and, in turn, Article::view.
Presumably you want to add a header or something, which can be done with the ArticleViewHeader hook, see http://mediawiki.org/wiki/Manual:Hoooks
-- Andrew Garrett Contract Developer, Wikimedia Foundation agarrett@wikimedia.org http://werdn.us
wikitech-l@lists.wikimedia.org