[Mediawiki-l] accessing title of page

Alistair Johnson JohnsonA at rembrandt.co.nz
Wed Apr 20 00:15:00 UTC 2005


Thanks Ben, that did the trick :-)

al.

-----Original Message-----
From: Ben DeVore [mailto:ctrlphreak at gmail.com]

$this->text('title') does echo $this->data['title'] 

so if you want to do an output to html you use the
$this->text('title') and if you want to store the value of the page
title into another variable or function use $this->data['title']

It took me a while to figure out the way mediawiki 1.4 does it and I
actually just found the answer yesterday!  Feels great to give back.

Enjoy
Ben

On 4/19/05, Alistair Johnson <JohnsonA at rembrandt.co.nz> wrote:
> how can I get the value of a page title into a variable?



More information about the MediaWiki-l mailing list