[pmwiki-users] Help making {$WikiTitle} markup

Bronwyn Boltwood bronwyn at bronwynb.info
Wed Mar 29 10:58:40 CST 2006


On 3/29/06, Hans <design at softflow.co.uk> wrote:
> Wednesday, March 29, 2006, 7:47:48 AM, Bronwyn wrote:
> > Markup('{$WikiTitle}', '>{$fmt}', '/\\{\\$WikiTitle\\}/', "$WikiTitle");
>
> > is no good when used from farmconfig.php -- it shows PmWiki for its
> > output, since that's the default $WikiTitle.
>
> use in farmconfig.php or config.php:
>
> # add page variable {$WikiTitle}
> $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]';

Yep, that works! Thank you -- I've been wanting that for ages.  Also
added to the documentation.

Bronwyn




More information about the pmwiki-users mailing list