[pmwiki-users] powertools - pagelist with custom fmt

Hans design5 at softflow.co.uk
Sat Sep 13 07:31:24 CDT 2008


Saturday, September 13, 2008, 1:08:56 PM, adam overton wrote:

> so again, is it/can it/will it be possible to run {(pagelist)} thru a
> custom fmt and have it still spit out as a csv?

this seems to be a contradiction in itself.
If you want a custom formatted output, you won't have a
comma-separated output.

On the other hand, have a look at powertools.php.
You could give a different value with fmt=mycustomfmt
but you need to define what it should be similar to
$FPLFormatOpt['csv'] = array('fn' =>  'FPLSimpleText');
function FPLSimpleText($pagename, &$matches, $opt) {
 .....
}
in powertools.php. I.e you could define

$FPLFormatOpt['mycustomfmt'] = array('fn' =>  'FPLMyCustomFmt');
function FPLMyCustomFmt($pagename, &$matches, $opt) {
 .....
}

  ~Hans




More information about the pmwiki-users mailing list