[pmwiki-users] Re: how to access variables from skin.php
Patrick R. Michaud
pmichaud at pobox.com
Thu Feb 17 14:38:32 CST 2005
On Fri, Feb 18, 2005 at 02:12:27AM +0530, mistyfire wrote:
> Hi,
> I wanted to access some variables like:
> $Group, $Name, $FullName ,
> and do some string manipulation within/in skin.php
> Though when I set --> global $ScriptUrl; I can access this variable but not
> the others.
$Group, $Name, $FullName, $Title, etc. aren't global variables as many
of the others are. They only exist inside of $...Fmt strings that are
generated by the FmtPageName() function.
Thus, if you want to get a page's group, you use something like:
$group = FmtPageName('$Group', $pagename);
Pm
More information about the pmwiki-users
mailing list