[pmwiki-users] Great pagelist question...

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 30 10:19:16 CDT 2006


On Wed, Aug 30, 2006 at 05:10:44PM +0200, Dominique Faure wrote:
> On 8/30/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> At the same time, could you please parametrize the variable evaluation
> of pagelist template:
> [...] More precisely and
> refering to the code above, I was thinking of something like:
> 
>    global $FPLTemplateReplace;
>    ...
>    SDVA($FPLTemplateReplace, array(
>    '' => array('pat' => '/\\{(=|&[lg]t;)(\\$\\w+)\\}/e',
>                'rep' => "PageVar(\$pn, '$2', '$1')",
>               ),
>    ));

How about something like...?

    SDVA($FPLTemplateReplacePattern, 
      array('/\\{(=|&[lg]t;)(\\$\\w+)\\}/e' => "PageVar(\$pn, '$2', '$1')"));

Pm




More information about the pmwiki-users mailing list