[pmwiki-users] powertools - pagelist with custom fmt

adam overton a at plus1plus1plus.org
Sat Sep 13 14:36:42 CDT 2008


hi hans
thanks - i'll take a look at this
thanks,
adam


On 13 Sep 2008, at 5:31 AM, Hans wrote:

> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080913/ee7927bb/attachment.html 


More information about the pmwiki-users mailing list