[pmwiki-users] How to retrieve the value of a Page Text Variable {Group/PageName$:Var} from a cookbook ?

Christophe David pmwiki at christophedavid.org
Sun Nov 26 02:17:58 CST 2006


>
> >    if (PageTextVar("Site.MyRecipeConfigurationdata", "EnableSomething")
> ==   "1")
> >       {
> >       ...
> >       }



It might not work from local/config.php, because the
> $PageTextVarPatterns haven't been loaded yet (these
> are normally loaded as part of the markup routines).
>
> You might need to do:
>
>     include_once("$FarmD/scripts/stdmarkup.php");
>
> before calling the PageTextVar() function.
>
> Pm



That was the problem !   Thanks a lot !

Maybe it could be loaded earlier by default  ?

----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061126/3a449798/attachment.html 


More information about the pmwiki-users mailing list