I've created a markup which calls a function. I'm trying to override 
$DefaultPageTextFmt, but if I do this inside the markup function the 
override doesn't occur. Placing the code inside the main body of the 
recipe works fine, but obviously triggers all the time, rather than when 
the markup is used..

I suspect I simply need to change the processing order of the markup 
some how. Suggestions?

Here's the markup:
   Markup("pmgallery", 'inline', "/\\(:pmgallery\\s*(.*?):\\)/se", 
"Keep(pmGallery(PSS('$1')))");

And the override code:
   $GLOBALS['DefaultPageTextFmt'] = '(:include {$Group}.pmPageNotFound:)';


  ~ ~ Dave

_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to