[pmwiki-users] I want to use FmtPV from mackup to set Page Variable, but can't get it to work reliably

Christopher Cox ccox at endlessnow.com
Fri Jul 14 12:45:57 CDT 2017


Ok.. this is weird.  If my (:mymarkup:) is embedded in 
(:markup:)(:markupend:) it works and my page variable is set. What am I 
missing?


On 07/14/2017 11:45 AM, Christopher Cox wrote:
> What I want is to have something like:
>
>
> (:mymarkup:)
>
> {$mymarkupvar}
>
>
> on a page.  Where mymarkup does inside it's function:
>
>
> global $FmtPV;
>
>
> $GLOBALS['myvar'] = 'hello';
>
> $FmtPV['$mymarkupvar'] = '$GLOBALS["myvar"]';
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>




More information about the pmwiki-users mailing list