[pmwiki-devel] Page variables set by markup?

Fredrik Ernander fredrik at jumans.net
Wed Jul 22 08:02:37 CDT 2009


I am trying to set some page variables through the use of some  
defined markup :

Markup("mymarkup", "directives", "/\\(:mymarkup (.*?):\\)/e",  
"mymarkup(PSS('$1'))");
$FmtPV['$mytesta'] = '"TeSt2"';


function mymarkup ($cmd, $argstr) {
	global  $FmtPV;
	
	$FmtPV['$mytest'] = '"TeSt"';
}


I can see that $mytesta is set but not $mytest... any idea of what I  
am doing wrong or can't I use Markup to do this?


Regards,

Fredrik



More information about the pmwiki-devel mailing list