[pmwiki-users] $WikiTitle inside a page
Patrick R. Michaud
pmichaud at pobox.com
Mon Aug 28 16:08:39 CDT 2006
On Mon, Aug 28, 2006 at 06:04:53PM -0300, Carlos A. Bonamigo wrote:
> I'm trying to use $WikiTitle inside a page wit no sussess.
>
> So, how can use variables in a page that were set inside skin.php ?
>
> I have a page called "Site.SiteTitle" and inside of it I have the following:
>
> !{$WikiTitle}
> !!{$WikiSubTitle}
>
> Inside skin.php I have this:
>
> global $WikiTitle, $WikiSIteTitle, $WikiSubTitle;
>
> $WikiSiteTitle = $WikiTitle;
> $WikiSubTitle = "Sub Title line";
>
> Thanks in advance for any sugestion.
You'll need to set a page variable for this, as opposed to
(in addition to?) a PHP global variable.
In particular, the {$...} markup only works with page variables.
So, something like:
$FmtPV['$WikiTitle'] = "$GLOBAL['WikiTitle']";
should cause {$WikiTitle} to work.
Pm
More information about the pmwiki-users
mailing list