[pmwiki-users] Markup Expression parameters

Hans Bracker design at softflow.co.uk
Tue Sep 29 04:30:02 CDT 2015

Hello Chuck,

Tuesday, September 29, 2015, 9:23:37 AM, you wrote:

> -  http://www.codingmaniac.com/pmwikitest/apcu/index.php?n=ChuckG.
> MepTest01

> Embedded PTV references within the PTV do get altered.

you need to use PageTextVar(), PageVar(), as Petko kindly advised.
Something like this:

$MarkupExpr['fixptv2'] = 'FixPtv2($pagename,$args[0])';
function FixPtv2($pn,$a) {
    $r = PageTextVar($pn, substr($a,2));
    echo $pn; print_r($r);
    return $r;

embedded expressions and PTvs get rendered correctly in the return,
but not before.


More information about the pmwiki-users mailing list