[pmwiki-users] $FmtPV

Vince Administration vadmin at math.uconn.edu
Thu Feb 3 20:17:54 CST 2011


On Feb 3, 2011, at 7:04 PM, Thomas Lundgren wrote:

> On a page I call a cookbook-script-function with a markup like;
> 
> (:my_function:)
> 
> In the cookbook i have a function that checks the value in a form-field every time it is called and sets the result in a PageVariable.
> 
> I want to use that variable on any page as any other PageVariable like;
> 
> {$MyVariable}
> 
> BUT. I can´t get this to work...
> 
> I can use $FmtPV in config.php and in the cookbook-script and set the variabel $MyVariable. But I can´t change the variable content in the function that is called in the cookbook-script.
> 
> What have I missed or doing wrong?
> 
> Regards
> / Thomas.
> 
> 
I have the exact same problem.  I was told to make sure to declare $FmtPV global in the function, but it didn't seem to help at all.

      Vince





More information about the pmwiki-users mailing list