[pmwiki-users] How to retrieve the value of a Page Text Variable {Group/PageName$:Var} from a cookbook ?
marc
gmane at auxbuss.com
Fri Nov 24 11:24:28 CST 2006
The Editor said...
> Perhaps Cristophe means:
>
> Is there a way to retrieve a page text variable in a recipe? That is,
> if I want to access one inside some php script, how do I get to it?
>
> Whether that's what he means or not, I'd be interested in knowing how
> to do it. It's not immediately obvious to me and could be quite
> useful...
You can access page text vars via
PageTextVar($pagename, $var)
So,
$fred = PageTextVar("Main.WikiSandbox", "FQDN");
returns the equivalent of the markup
{Main.WikiSandbox$:FQDN}
--
Best,
Marc
More information about the pmwiki-users
mailing list