[pmwiki-users] foxfilter: define ptvfmt

Hans design5 at softflow.co.uk
Wed Aug 6 16:19:25 CDT 2008

Wednesday, August 6, 2008, 9:17:06 PM, noskule wrote:

> Is is some how possible to define the ptvfmt for a given field/ptv 
> inside a foxfilter function?

you could try  adding to the function:

    $fields['ptvfmt'] = 'text';

but this does not let you set specific ptvfmt for different ptvs.
Fox will use one type of ptvfmt for a target page.
You can specify different ptvfmts for different target pages though.
Perhaps you can achieve what you want by setting the target twice,
once to create standard ptvs, and once to create custom ptvs, by
specifying which ptvs in each case.
Or simpler since this is about adding new ptvs: use a template and
normal adding of content.


More information about the pmwiki-users mailing list